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

Test that you can’t move left from the leftmost child of a branch.

This commit is contained in:
Rob Rix 2015-11-05 11:15:22 -05:00
parent 1444acf2a2
commit 3d0a53a6b4

View File

@ -23,6 +23,10 @@ final class LocationTests: XCTestCase {
func testCanMoveBackUpwards() {
assert(term.explore().down?.up?.it, ==, term)
}
func testCannotMoveLeftwardsFromFirstChildOfBranch() {
assert(term.explore().down?.left?.it, ==, nil)
}
}