diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-12 15:44:27 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-12 15:44:27 -0800 |
commit | 055b99c3cb5181857a114850950c670eee106b46 (patch) | |
tree | 7b5db15255d5d7a8bb3732615ff345803c5c2483 /ext/librethinkdbxx/test/upstream/math_logic/sub.yaml | |
parent | 531842dc6b9d0f8a4014eb7af85a1e3a30ccb931 (diff) | |
download | infinitytier-055b99c3cb5181857a114850950c670eee106b46.tar.gz infinitytier-055b99c3cb5181857a114850950c670eee106b46.zip |
cleanup
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]) |