mirror of
https://github.com/github/semantic.git
synced 2024-12-24 23:42:31 +03:00
Test returning to the root.
This commit is contained in:
parent
96b4d116da
commit
59ef9b1eb4
@ -39,6 +39,10 @@ final class LocationTests: XCTestCase {
|
||||
func testCanMoveBackUpwardsFromDeepExplorations() {
|
||||
assert(term.explore().down?.right?.right?.down?.right?.up?.up?.it, ==, term)
|
||||
}
|
||||
|
||||
func testCanReturnToStartOfExplorationFromArbitrarilyDeepNodes() {
|
||||
assert(term.explore().down?.right?.right?.down?.right?.root.it, ==, term)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user