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:
parent
274fb6bfab
commit
18aa5bd2d4
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user