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:
parent
23725c7fd6
commit
d0c9f27975
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user