feat: move corpus to library
This commit is contained in:
1301 files changed
+941859
-4
No files matched your search
Generated
+13
@@ -0,0 +1,13 @@
|
||||
from std.testing import assert_raises
|
||||
|
||||
|
||||
def clamp(n: Int) raises -> Int:
|
||||
if n < 0:
|
||||
raise Error("negative speed")
|
||||
return n
|
||||
|
||||
|
||||
def main() raises:
|
||||
with assert_raises():
|
||||
_ = clamp(5)
|
||||
print("raised as expected")
|
||||
Reference in new issue
Block a user