This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-zerotierone/ext/librethinkdbxx/test/upstream/regression/767.yaml
2017-11-02 07:05:11 -07:00

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.*')