summary refs log tree commit diff
path: root/01/tests/main.rs
blob: b3d3cecd7d3f3c4c80a735f4b17f79310afb61de (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_01")?;

  command.arg("input");
  command.assert().success().stdout(
      "a: 246, b: 1774, a*b: 436404\n\
      a: 448, b: 721, c: 851, a*b*c: 274879808\n");

  Ok(())
}