1
1
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:
Rob Rix 2015-10-16 17:46:12 -04:00
parent c57d43c48b
commit 6ac949fe4b

View File

@ -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)