1
1
mirror of https://github.com/github/semantic.git synced 2024-12-01 00:33:59 +03:00

Test SES deleting at head.

This commit is contained in:
Rob Rix 2015-09-17 15:56:01 -04:00
parent 8c642c6f94
commit 3885572e72

View File

@ -14,6 +14,10 @@ final class DiffTests: XCTestCase {
func testSESCanInsertAtHead() {
XCTAssertEqual(Diff.diff([ a, b, c ], [ d, a, b, c ]), [ Diff.Insert(d), Diff(a), Diff(b), Diff(c) ])
}
func testSESCanDeleteAtHead() {
XCTAssertEqual(Diff.diff([ d, a, b, c ], [ a, b, c ]), [ Diff.Delete(d), Diff(a), Diff(b), Diff(c) ])
}
}
private let a = Fix(.Literal("a"))