mirror of
https://github.com/github/semantic.git
synced 2024-11-28 18:23:44 +03:00
Test that differences differ.
This commit is contained in:
parent
c57d43c48b
commit
6ac949fe4b
@ -14,6 +14,13 @@ final class DiffTests: XCTestCase {
|
||||
}
|
||||
}
|
||||
|
||||
func testInequalTermsProduceNonIdentityDiffs() {
|
||||
property("inequal terms produce non-identity diffs") <- forAll { (diff: RangedDiff) in
|
||||
// fixme: limit this to inequal terms
|
||||
Diff.sum(const(1))(diff.diff) > 0
|
||||
}
|
||||
}
|
||||
|
||||
func testEqualityIsReflexive() {
|
||||
property("equality is reflexive") <- forAll { (diff: RangedDiff) in
|
||||
equal(diff.diff, diff.diff)
|
||||
|
Loading…
Reference in New Issue
Block a user