summaryrefslogtreecommitdiff
path: root/ext/librethinkdbxx/test/upstream/datum/bool.yaml
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-12 15:44:27 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2018-01-12 15:44:27 -0800
commit055b99c3cb5181857a114850950c670eee106b46 (patch)
tree7b5db15255d5d7a8bb3732615ff345803c5c2483 /ext/librethinkdbxx/test/upstream/datum/bool.yaml
parent531842dc6b9d0f8a4014eb7af85a1e3a30ccb931 (diff)
downloadinfinitytier-055b99c3cb5181857a114850950c670eee106b46.tar.gz
infinitytier-055b99c3cb5181857a114850950c670eee106b46.zip
cleanup
Diffstat (limited to 'ext/librethinkdbxx/test/upstream/datum/bool.yaml')
-rw-r--r--ext/librethinkdbxx/test/upstream/datum/bool.yaml47
1 files changed, 0 insertions, 47 deletions
diff --git a/ext/librethinkdbxx/test/upstream/datum/bool.yaml b/ext/librethinkdbxx/test/upstream/datum/bool.yaml
deleted file mode 100644
index 0e0aa11f..00000000
--- a/ext/librethinkdbxx/test/upstream/datum/bool.yaml
+++ /dev/null
@@ -1,47 +0,0 @@
-desc: Tests of conversion to and from the RQL bool type
-tests:
- - py: r.expr(True)
- js:
- - r.expr(true)
- - r(true)
- rb: r true
- ot: true
-
- - py: r.expr(False)
- js:
- - r.expr(false)
- - r(false)
- rb: r false
- ot: false
-
- - cd: r.expr(False).type_of()
- ot: 'BOOL'
-
- # test coercions
- - cd: r.expr(True).coerce_to('string')
- ot: 'true'
-
- - cd: r.expr(True).coerce_to('bool')
- ot: True
-
- - cd: r.expr(False).coerce_to('bool')
- ot: False
-
- - cd: r.expr(null).coerce_to('bool')
- ot: False
-
- - cd: r.expr(0).coerce_to('bool')
- ot: True
-
- - cd: r.expr('false').coerce_to('bool')
- ot: True
-
- - cd: r.expr('foo').coerce_to('bool')
- ot: True
-
- - cd: r.expr([]).coerce_to('bool')
- ot: True
-
- - cd: r.expr({}).coerce_to('bool')
- ot: True
-