summaryrefslogtreecommitdiff
path: root/tests/extmod/json_loads_int_64.py
blob: f6236f1904a875e65d504aa51c747e4a71b6525b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Parse 64-bit integers from JSON payloads.
#
# This also exercises parsing integers from strings
# where the value may not be null terminated (last line)
try:
    import json
except ImportError:
    print("SKIP")
    raise SystemExit


print(json.loads("9111222333444555666"))
print(json.loads("-9111222333444555666"))
print(json.loads("9111222333444555666"))
print(json.loads("-9111222333444555666"))
print(json.loads('["9111222333444555666777",9111222333444555666]'))