This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .PHONY: help build test run fmt clippy check clean pre-commit-install all | |
| help: | |
| @echo "Available commands:" | |
| @echo " make build - Build the project" | |
| @echo " make test - Run tests" | |
| @echo " make run - Run the binary" | |
| @echo " make fmt - Format code" | |
| @echo " make fmt-check - Check formatting" | |
| @echo " make clippy - Run linter" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #[cfg(test)] | |
| mod tests { | |
| use super::*; | |
| #[test] | |
| fn test_empty_braces() { | |
| let tokens = tokenize("{}"); | |
| assert_eq!(tokens.len(), 2); | |
| assert_eq!(tokens[0], Token::LeftBrace); | |
| assert_eq!(tokens[1], Token::RightBrace); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| repos: | |
| - repo: local | |
| hooks: | |
| - id: cargo-fmt | |
| name: cargo fmt | |
| entry: cargo fmt -- | |
| language: system | |
| types: [rust] | |
| pass_filenames: false |