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/math_logic/math.yaml
2017-11-02 07:05:11 -07:00

12 lines
325 B
YAML

desc: Tests of nested arithmetic expressions
tests:
- py: (((4 + 2 * (r.expr(26) % 18)) / 5) - 3)
js: r(4).add(r(2).mul(r(26).mod(18))).div(5).sub(3)
rb:
- ((((r 4) + (r 2) * ((r 26) % 18)) / 5) -3)
- (((4 + 2 * ((r 26) % 18)) / 5) -3)
ot: 1
# Prescedence set by host langauge