1
1
mirror of https://github.com/github/semantic.git synced 2024-12-19 04:41:47 +03:00
semantic/prototype/DoubtTests/DiffTests.swift

16 lines
382 B
Swift
Raw Normal View History

final class DiffTests: XCTestCase {
func testSESOverEmptyCollectionsIsEmpty() {
XCTAssertEqual(Diff.diff([], []), [])
}
func testSESOverEmptyAndNonEmptyCollectionsIsInsertions() {
XCTAssertEqual(Diff.diff([], [ a, b ]), [ Diff.Patch(.Empty, a), Diff.Patch(.Empty, b) ])
}
}
private let a = Fix(.Literal("a"))
private let b = Fix(.Literal("b"))
import Doubt
import XCTest