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:
parent
20fa9ba32a
commit
bec43a2c94
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user