test/test_bridge.rb in bridge-0.0.15 vs test/test_bridge.rb in bridge-0.0.16

- old
+ new

@@ -6,6 +6,20 @@ end test "number of possible bridge deals is not valid deal id" do assert_false Bridge.deal_id?(Bridge::DEALS) end + + test "return partner of direction" do + assert_equal "N", Bridge.partner_of("S") + assert_equal "S", Bridge.partner_of("N") + assert_equal "E", Bridge.partner_of("W") + assert_equal "W", Bridge.partner_of("E") + end + + test "return side of direction" do + assert_equal "NS", Bridge.side_of("S") + assert_equal "NS", Bridge.side_of("N") + assert_equal "EW", Bridge.side_of("W") + assert_equal "EW", Bridge.side_of("E") + end end