Skip to content

Commit 7273294

Browse files
committed
Add orientation tests for Direction
1 parent cbd7d6b commit 7273294

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/test/kotlin/de/ronny_h/extensions/CoordinatesTest.kt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,16 @@ class CoordinatesTest : StringSpec({
7272
SOUTH.asChar() shouldBe ''
7373
WEST.asChar() shouldBe ''
7474
}
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+
}
7587
})

0 commit comments

Comments
 (0)