Initial Commit
This commit is contained in:
789 files changed
+149185
No files matched your search
@@ -0,0 +1,13 @@
|
||||
# What a contract says failed may be any view of text, made only where it
|
||||
# fails, and a full stop it ends with is the report's own.
|
||||
import std::io;
|
||||
|
||||
def counted(why: strview, count: i64): void {
|
||||
expects(count > 0, why);
|
||||
io::println($"{count} counted");
|
||||
}
|
||||
|
||||
def main(): void {
|
||||
counted("A count is above zero.", 2);
|
||||
counted($"A count of {0} is above zero.", 0);
|
||||
}
|
||||
Reference in new issue
Block a user