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:
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