1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00

Test that exploration starts at a root.

This commit is contained in:
Rob Rix 2015-11-05 10:57:07 -05:00
parent 1ec85928a3
commit 23725c7fd6

View File

@ -2,6 +2,10 @@ final class LocationTests: XCTestCase {
func testExplorationOfATermBeginsAtTheExploredTerm() {
assert(term.explore().it, ==, term)
}
func testCannotMoveUpwardsAtTheStartOfAnExploration() {
assert(term.explore().up?.it, ==, nil)
}
}