11 lines
461 B
YAML
11 lines
461 B
YAML
desc: 767 -- better NaN checking
|
|
tests:
|
|
- js: r({a:NaN})
|
|
ot: builtin_err("TypeError", "Illegal non-finite number `NaN`.")
|
|
- js: r({a:Infinity})
|
|
ot: builtin_err("TypeError", "Illegal non-finite number `Infinity`.")
|
|
- py: r.expr(float('NaN'))
|
|
ot: err_regex('ValueError', 'Out of range float values are not JSON compliant.*')
|
|
- py: r.expr(float('Infinity'))
|
|
ot: err_regex('ValueError', 'Out of range float values are not JSON compliant.*')
|