diff options
Diffstat (limited to 'ext/librethinkdbxx/test/upstream/math_logic/sub.yaml')
-rw-r--r-- | ext/librethinkdbxx/test/upstream/math_logic/sub.yaml | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/ext/librethinkdbxx/test/upstream/math_logic/sub.yaml b/ext/librethinkdbxx/test/upstream/math_logic/sub.yaml deleted file mode 100644 index 2c91bdaa..00000000 --- a/ext/librethinkdbxx/test/upstream/math_logic/sub.yaml +++ /dev/null @@ -1,37 +0,0 @@ -desc: Tests for basic usage of the subtraction operation -tests: - - - cd: r.expr(1).sub(1) - py: - - r.expr(1) - 1 - - 1 - r.expr(1) - - r.expr(1).sub(1) - rb: - - (r 1) - 1 - - 1 - (r 1) - - r(1).sub(1) - - r.expr(1).sub(1) - ot: 0 - - - cd: r.expr(-1).sub(1) - py: r.expr(-1) - 1 - rb: (r -1) - 1 - ot: -2 - - - cd: r.expr(1.75).sub(8.5) - py: r.expr(1.75) - 8.5 - rb: (r 1.75) - 8.5 - ot: -6.75 - - - cd: r.expr(1).sub(2,3,4,5) - ot: -13 - - # Type errors - - cd: r.expr('a').sub(0.8) - ot: err('ReqlQueryLogicError', 'Expected type NUMBER but found STRING.', [0]) - - - cd: r.expr(1).sub('a') - ot: err('ReqlQueryLogicError', 'Expected type NUMBER but found STRING.', [1]) - - - cd: r.expr('b').sub('a') - ot: err('ReqlQueryLogicError', 'Expected type NUMBER but found STRING.', [0]) |