summary refs log tree commit diff
path: root/19/tests
diff options
context:
space:
mode:
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(())
+}
+