We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cbd7d6b commit 7273294Copy full SHA for 7273294
src/test/kotlin/de/ronny_h/extensions/CoordinatesTest.kt
@@ -72,4 +72,16 @@ class CoordinatesTest : StringSpec({
72
SOUTH.asChar() shouldBe '↓'
73
WEST.asChar() shouldBe '←'
74
}
75
+
76
+ "A Direction's orientation is checked right" {
77
+ NORTH.isVertical() shouldBe true
78
+ NORTH.isHorizontal() shouldBe false
79
+ SOUTH.isVertical() shouldBe true
80
+ SOUTH.isHorizontal() shouldBe false
81
82
+ EAST.isVertical() shouldBe false
83
+ EAST.isHorizontal() shouldBe true
84
+ WEST.isVertical() shouldBe false
85
+ WEST.isHorizontal() shouldBe true
86
+ }
87
})
0 commit comments