erg/tests/should_err/impl.er
2023-02-22 11:55:02 +09:00

7 lines
139 B
Python

impl = import "../should_ok/impl"
c = impl.C.new()
assert c + 1 == 1
assert c + 1 == c # ERR
assert c + -1 == c
assert c + -1 == -1 # ERR