Skip to content

Instantly share code, notes, and snippets.

@Groogy
Last active October 1, 2017 10:39
Show Gist options
  • Save Groogy/e8dbfd933bc441a2f581a285d85ecca1 to your computer and use it in GitHub Desktop.
Save Groogy/e8dbfd933bc441a2f581a285d85ecca1 to your computer and use it in GitHub Desktop.
# 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