1
1
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:
Rob Rix 2015-11-05 11:36:30 -05:00
parent 96b4d116da
commit 59ef9b1eb4

View File

@ -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)
}
}