Last active
October 1, 2017 10:39
-
-
Save Groogy/e8dbfd933bc441a2f581a285d85ecca1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Papierkorb suggestion | |
class Foo | |
include CrystalClear | |
requires var > 5 | |
ensures result.query? | |
assert def foo # Apply contract semantics to method | |
# Code | |
end | |
invariant @var == true | |
end | |
assert something_true # Also add so the assert can handle normal tests |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment