1. Shlomi Fish
  2. abc-path

Commits

shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b  committed 8556064

Add a test.

  • Participants
  • Parent commits af07a85
  • Branches default

Comments (0)

Files changed (1)

File abc-path/Games-ABC_Path-Solver/t/input-from-string.t

View file
  • Ignore whitespace
 use strict;
 use warnings;
 
-use Test::More tests => 2;
+use Test::More tests => 3;
+use Test::Differences;
 
 use Games::ABC_Path::Solver::Board;
 
     is (scalar(@{$solver->get_successful_layouts()}), 1,
         "One successful layout"
     );
+
+    # TEST
+    eq_or_diff($solver->get_successes_text_tables(),
+        [ <<'EOF' ],
+| X = 1 | X = 2 | X = 3 | X = 4 | X = 5 |
+|   K   |   J   |   I   |   B   |   A   |
+|   L   |   H   |   G   |   C   |   E   |
+|   U   |   M   |   N   |   F   |   D   |
+|   V   |   T   |   Y   |   O   |   P   |
+|   W   |   X   |   S   |   R   |   Q   |
+EOF
+        "Success table is right.",
+    );
 }
 
 =head1 COPYRIGHT AND LICENSE