Skip to content

Commit

Permalink
In the process of updating the lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
newcomb-luke committed Jul 30, 2024
1 parent 0534821 commit 44c99c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ homepage = "https://github.com/newcomb-luke/kOS-KASM"

[dependencies]
atty = "0.2.14"
clap = { version = "4.0.18", features = ["derive"] }
kerbalobjects = "4.0.2"
logos = "0.12.0"
termcolor = "1.1"
clap = { version = "4.5.11", features = ["derive"] }
kerbalobjects = "4.0.3"
logos = "0.14.0"
termcolor = "1.4"
pathdiff = "0.2.1"

[profile.dist]
Expand Down
12 changes: 12 additions & 0 deletions tests/preprocessor-parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,4 +256,16 @@ fn parse_include_literal_with_trailing_whitespace() {
fn parse_include_with_trailing_tokens() {
let source = ".include \"test.kasm\" 2";
assert!(parse_source(source).is_err());
}

#[test]
fn parse_include_without_path() {
let source = ".include ";
assert!(parse_source(source).is_err());
}

#[test]
fn parse_include_invalid_token() {
let source = ".include 4";
assert!(parse_source(source).is_err());
}

0 comments on commit 44c99c8

Please sign in to comment.