summary refs log tree commit diff
path: root/04/tests/main.rs
blob: b3bc16113068eaa5185943f4c3f936c8f5aad7ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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_04")?;

  command.arg("input");
  command.assert().success().stdout(
      "33348\n\
      8112\n");

  Ok(())
}