summary refs log tree commit diff
path: root/19/tests
diff options
context:
space:
mode:
authorIrene Knapp <ireneista@gmail.com>2021-12-19 00:11:35 -0800
committerIrene Knapp <ireneista@gmail.com>2021-12-19 00:11:35 -0800
commitc62c12a21b11413ee66eee359152d34075daa0e3 (patch)
tree51a35de4f7ab959b47ce10b5b02d8df7f0f5d36f /19/tests
parent5679068cb93ac96439d3ed8410a2776cfeb3e09b (diff)
19
Diffstat (limited to '19/tests')
-rw-r--r--19/tests/.main.rs.swmbin0 -> 12288 bytes
-rw-r--r--19/tests/.main.rs.swnbin0 -> 12288 bytes
-rw-r--r--19/tests/main.rs19
3 files changed, 19 insertions, 0 deletions
diff --git a/19/tests/.main.rs.swm b/19/tests/.main.rs.swm
new file mode 100644
index 0000000..5054379
--- /dev/null
+++ b/19/tests/.main.rs.swm
Binary files differdiff --git a/19/tests/.main.rs.swn b/19/tests/.main.rs.swn
new file mode 100644
index 0000000..6017cf8
--- /dev/null
+++ b/19/tests/.main.rs.swn
Binary files differdiff --git a/19/tests/main.rs b/19/tests/main.rs
new file mode 100644
index 0000000..ae2797e
--- /dev/null
+++ b/19/tests/main.rs
@@ -0,0 +1,19 @@
+use assert_cmd::prelude::*;
+//use predicates::prelude::*;
+use std::process::Command;
+
+
+#[test]
+fn personal_input() -> Result<(), Box<dyn std::error::Error>> {
+  let mut command = Command::cargo_bin("advent_19")?;
+
+  command.arg("small");
+  command.assert().success().stdout(
+      "79\n\
+      3621\n");
+
+
+
+  Ok(())
+}
+