summary refs log tree commit diff
path: root/08/tests/main.rs
blob: 3761615c8a8c2a46f31df24f3172e047b7d8d8f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use assert_cmd::prelude::*;
use std::process::Command;


#[test]
fn personal_input() -> Result<(), Box<dyn std::error::Error>> {
  let mut command = Command::cargo_bin("advent_08")?;

  command.arg("input");
  command.assert().success().stdout("1801\nnormal exit 2060\n");

  Ok(())
}