1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 23:42:31 +03:00

Test that the start of exploration can’t move sideways.

This commit is contained in:
Rob Rix 2015-11-05 10:57:30 -05:00
parent 23725c7fd6
commit d0c9f27975

View File

@ -6,6 +6,11 @@ final class LocationTests: XCTestCase {
func testCannotMoveUpwardsAtTheStartOfAnExploration() {
assert(term.explore().up?.it, ==, nil)
}
func testCannotMoveSidewaysAtTheStartOfAnExploration() {
assert(term.explore().left?.it, ==, nil)
assert(term.explore().right?.it, ==, nil)
}
}