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:
parent
deb3745613
commit
07fdfc5abc
@ -27,6 +27,10 @@ final class LocationTests: XCTestCase {
|
|||||||
func testCannotMoveLeftwardsFromFirstChildOfBranch() {
|
func testCannotMoveLeftwardsFromFirstChildOfBranch() {
|
||||||
assert(term.explore().down?.left?.it, ==, nil)
|
assert(term.explore().down?.left?.it, ==, nil)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func testCanMoveRightwardsFromLeftmostChildOfLongBranch() {
|
||||||
|
assert(term.explore().down?.right?.it, ==, leafB)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user