pre_marking4/knight1_test1.scala
changeset 386 e2170c91a9f2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/pre_marking4/knight1_test1.scala	Mon Jan 18 22:12:39 2021 +0000
@@ -0,0 +1,9 @@
+import CW9a._
+
+assert(is_legal(8, Nil, (3, 4)) == true)
+assert(is_legal(8, List((4, 1), (1, 0)), (4, 1)) == false)
+assert(is_legal(2, Nil, (0, 0)) == true)
+
+
+
+