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:
parent
8c642c6f94
commit
3885572e72
@ -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"))
|
||||
|
Loading…
Reference in New Issue
Block a user