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

  command.arg("input");
  command.assert().success().stdout(
      "592\n\
       ..##..##...##....##.####.####.#..#.#..#\n\
       ...#.#..#.#..#....#.#....#....#.#..#..#\n\
       ...#.#....#..#....#.###..###..##...#..#\n\
       ...#.#.##.####....#.#....#....#.#..#..#\n\
       #..#.#..#.#..#.#..#.#....#....#.#..#..#\n\
       .##...###.#..#..##..####.#....#..#..##.\n");

  Ok(())
}