mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 02:39:20 +00:00
feat: add real assert
function
This commit is contained in:
parent
d4c566477f
commit
1c6a6b2ec8
2 changed files with 3 additions and 0 deletions
|
@ -24,6 +24,8 @@ def with__(obj, body):
|
|||
def discard__(obj):
|
||||
pass
|
||||
|
||||
def assert__(test, msg=None):
|
||||
assert test, msg
|
||||
|
||||
def then__(x, f):
|
||||
if x == None or x == NotImplemented:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue