Commits

Shlomi Fish  committed 83c4a4c

Add a test to _clues_positions.

  • Participants
  • Parent commits 82e007b

Comments (0)

Files changed (1)

File abc-path/js/abc-path-test.js

     });
 
     test("_clues_positions", function() {
-        expect(1);
+        expect(2);
 
         // The seed does not matter.
         var gen = new ABC_Path.Generator.Generator({seed : 1});
         deepEqual(map_clue(gen._clues_positions[0]), [[0,0],[1,1],[2,2],[3,3],[4,4]],
             'clue No. 0 (diagonal) is OK.'
         );
+        // TEST
+        deepEqual(map_clue(gen._clues_positions[1]), [[0,4],[1,3],[2,2],[3,1],[4,0]],
+            'clue No. 1 (anti-diagonal) is OK.'
+        );
     });
 }