]> git.scottworley.com Git - slidingtile/blobdiff - sliding_tile_lib_test.cc
successors is const
[slidingtile] / sliding_tile_lib_test.cc
index 54d7db627acada21e6a1d3905aefe2f6fea35dbd..5597a1b3bcb1b638fec2b1041a4cccdd10336177 100644 (file)
@@ -42,6 +42,8 @@ TEST(Board, Equal) {
   EXPECT_TRUE(b1 == b2);
   EXPECT_FALSE(b1 != b2);
   EXPECT_EQ(b1, b2);
+  EXPECT_FALSE(b1 < b2);
+  EXPECT_FALSE(b2 < b1);
 }
 
 TEST(Board, NotEqual) {
@@ -50,6 +52,8 @@ TEST(Board, NotEqual) {
   EXPECT_FALSE(b1 == b2);
   EXPECT_TRUE(b1 != b2);
   EXPECT_NE(b1, b2);
+  EXPECT_TRUE(b1 < b2);
+  EXPECT_FALSE(b2 < b1);
 }
 
 TEST(Board, GoodInput) {