blob: b2303f45b05c8494ad449a919c8462bc8ad84363 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# mode: run
cdef bint is_null(int* x):
return False # disabled - currently just a parser test
match x:
case NULL:
return True
case _:
return False
def test_is_null():
"""
>>> test_is_null()
"""
cdef int some_int = 1
return # disabled - currently just a parser test
assert is_null(&some_int) == False
assert is_null(NULL) == True
|