From dc2d41806d750ec48cb01a3341028d36866965fe Mon Sep 17 00:00:00 2001 From: Irene Knapp Date: Mon, 21 Dec 2020 23:29:34 -0800 Subject: fix tests --- 18/tests/main.rs | 4 ++-- 19/tests/main.rs | 4 ++-- 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> { - 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> { - 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" ] } -- cgit 1.4.1