diff options
-rw-r--r-- | 18/tests/main.rs | 4 | ||||
-rw-r--r-- | 19/tests/main.rs | 4 | ||||
-rw-r--r-- | lib/Cargo.toml | 3 |
3 files changed, 7 insertions, 4 deletions
diff --git a/18/tests/main.rs b/18/tests/main.rs index 394fb0f..47c7314 100644 --- a/18/tests/main.rs +++ b/18/tests/main.rs @@ -4,10 +4,10 @@ use std::process::Command; #[test] fn personal_input() -> Result<(), Box<dyn std::error::Error>> { - let mut command = Command::cargo_bin("advent_17")?; + let mut command = Command::cargo_bin("advent_18")?; command.arg("input"); - command.assert().success().stdout("265\n1936\n"); + command.assert().success().stdout("510009915468\n321176691637769\n"); Ok(()) } diff --git a/19/tests/main.rs b/19/tests/main.rs index 394fb0f..a0e9237 100644 --- a/19/tests/main.rs +++ b/19/tests/main.rs @@ -4,10 +4,10 @@ use std::process::Command; #[test] fn personal_input() -> Result<(), Box<dyn std::error::Error>> { - let mut command = Command::cargo_bin("advent_17")?; + let mut command = Command::cargo_bin("advent_19")?; command.arg("input"); - command.assert().success().stdout("265\n1936\n"); + command.assert().success().stdout("176\n352\n"); Ok(()) } diff --git a/lib/Cargo.toml b/lib/Cargo.toml index 6c46cec..7785a81 100644 --- a/lib/Cargo.toml +++ b/lib/Cargo.toml @@ -6,3 +6,6 @@ edition = "2018" [dependencies] lalrpop-util = "0.19" + +[build-dependencies] +lalrpop = { version = "0.19", features = [ "lexer" ] } |