1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +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)
}
}