1
1
mirror of https://github.com/github/semantic.git synced 2025-01-04 13:34:31 +03:00

Test that the after state is recoverable.

This commit is contained in:
Rob Rix 2015-10-16 17:35:18 -04:00
parent 20fa9ba32a
commit bec43a2c94

View File

@ -27,6 +27,12 @@ final class DiffTests: XCTestCase {
equal($0, diff.a.map(const(())))
} ?? false
}
property("after state is recoverable") <- forAll { (diff: RangedDiff) in
return diff.diff.map { $0.map { $0.map(const(())) } }.after.map {
equal($0, diff.b.map(const(())))
} ?? false
}
}
}