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

Test that moving rightward is consistent with the data structure.

This commit is contained in:
Rob Rix 2015-11-05 11:29:41 -05:00
parent deb3745613
commit 07fdfc5abc

View File

@ -27,6 +27,10 @@ final class LocationTests: XCTestCase {
func testCannotMoveLeftwardsFromFirstChildOfBranch() {
assert(term.explore().down?.left?.it, ==, nil)
}
func testCanMoveRightwardsFromLeftmostChildOfLongBranch() {
assert(term.explore().down?.right?.it, ==, leafB)
}
}