1. Shlomi Fish
  2. kakuro-cross-sums

Commits

shl...@b384bcd7-cfd4-0310-aca0-d78b80f7b91b  committed 81f2d66

Kakuro: Added more assertions

  • Participants
  • Parent commits 128cef8
  • Branches default

Comments (0)

Files changed (1)

File solver/ruby/t/parse-board.rb

View file
 EOF
     end
 
-    it "cells in 0th row are solid or not" do
+    it "cells are solid or not" do
         @board.cell_yx(0,0).solid?.should
         @board.cell_yx(0,1).solid?.should
         @board.cell_yx(0,2).solid?.should
+        @board.cell_yx(1,2).solid?.should_not
+        @board.cell_yx(1,3).solid?.should_not
+        @board.cell_yx(1,4).solid?.should
+        @board.cell_yx(1,5).solid?.should_not
+        @board.cell_yx(1,5).solid?.should_not
+        @board.cell_yx(1,6).solid?.should_not
+        @board.cell_yx(1,6).solid?.should_not
+        @board.cell_yx(1,7).solid?.should
+        @board.cell_yx(1,8).solid?.should
     end
 
-    it "cells in 1st row are solid or not" do
-        @board.cell_yx(1,2).solid?.should_not
-    end
 end