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

Test that we can move back upwards in explorations.

This commit is contained in:
Rob Rix 2015-11-05 11:09:36 -05:00
parent 274fb6bfab
commit 18aa5bd2d4

View File

@ -15,6 +15,10 @@ final class LocationTests: XCTestCase {
func testCannotMoveDownwardsFromLeaves() {
assert(leaf.explore().down?.it, ==, nil)
}
func testCanMoveBackUpwards() {
assert(term.explore().down?.up?.it, ==, leaf)
}
}