-use Test::More tests => ~~3~~;

+use Test::More tests => 6;

eq_or_diff ($trap->stdout(), $expected_output, "Right output.");

+ system("./black-hole-solve",

+ "--max-iters", "10000",

+ $bin_dir, "data", "26464608654870335080.bh.board.txt"

+ok (! ($trap->exit), "Running --max-iters program successfully.");

+$expected_output = <<'EOF';

+Move a card from stack 16 to the foundations

+Move a card from stack 13 to the foundations

+Move a card from stack 16 to the foundations

+Move a card from stack 13 to the foundations

+Move a card from stack 2 to the foundations

+Move a card from stack 3 to the foundations

+Move a card from stack 13 to the foundations

+Move a card from stack 15 to the foundations

+Move a card from stack 11 to the foundations

+Move a card from stack 16 to the foundations

+Move a card from stack 14 to the foundations

+Move a card from stack 3 to the foundations

+Move a card from stack 5 to the foundations

+Move a card from stack 5 to the foundations

+Move a card from stack 12 to the foundations

+Move a card from stack 0 to the foundations

+Move a card from stack 9 to the foundations

+Move a card from stack 14 to the foundations

+Move a card from stack 7 to the foundations

+Move a card from stack 7 to the foundations

+Move a card from stack 8 to the foundations

+Move a card from stack 0 to the foundations

+Move a card from stack 9 to the foundations

+Move a card from stack 10 to the foundations

+Move a card from stack 7 to the foundations

+Move a card from stack 14 to the foundations

+Move a card from stack 10 to the foundations

+Move a card from stack 8 to the foundations

+Move a card from stack 15 to the foundations

+Move a card from stack 6 to the foundations

+Move a card from stack 1 to the foundations

+Move a card from stack 4 to the foundations

+Move a card from stack 11 to the foundations

+Move a card from stack 1 to the foundations

+Move a card from stack 4 to the foundations

+Move a card from stack 6 to the foundations

+Move a card from stack 15 to the foundations

+Move a card from stack 12 to the foundations

+Move a card from stack 4 to the foundations

+Move a card from stack 0 to the foundations

+Move a card from stack 8 to the foundations

+Move a card from stack 3 to the foundations

+Move a card from stack 2 to the foundations

+Move a card from stack 5 to the foundations

+Move a card from stack 10 to the foundations

+Move a card from stack 6 to the foundations

+Move a card from stack 1 to the foundations

+Move a card from stack 2 to the foundations

+Move a card from stack 9 to the foundations

+Move a card from stack 11 to the foundations

+Move a card from stack 12 to the foundations

+Total number of states checked is 8636.

+This scan generated 8672 states.

+eq_or_diff ($trap->stdout(), $expected_output, "Right output.");

+ system("./black-hole-solve",

+ $bin_dir, "data", "1.bh.board.txt"

+$expected_output = <<'EOF';

+Total number of states checked is 8.

+This scan generated 8 states.

+eq_or_diff ($trap->stdout(), $expected_output, "Right output for --max-iters.");