summary refs log tree commit diff
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2020-12-21 23:29:34 -0800
committerIrene Knapp <ireneista@gmail.com>2020-12-21 23:29:34 -0800
commitdc2d41806d750ec48cb01a3341028d36866965fe (patch)
tree9603d6d1e966882fd00f84f36aa3a51eb1e882df
parent117ab73fa491c4692524068c077d5dd6fb5101bb (diff)
fix tests
-rw-r--r--18/tests/main.rs4
-rw-r--r--19/tests/main.rs4
-rw-r--r--lib/Cargo.toml3
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" ] }