1
1
mirror of https://github.com/github/semantic.git synced 2024-12-30 18:36:27 +03:00

Skip equal terms.

This commit is contained in:
Rob Rix 2015-10-19 09:52:15 -04:00
parent 9bebb438ae
commit 0cc7889ae1

View File

@ -16,8 +16,7 @@ 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
(!Term.equals(annotation: const(true), leaf: ==)(diff.a, diff.b)) ==> Diff.sum(const(1))(diff.diff) > 0
}
}