diff options
Diffstat (limited to 'ext/librethinkdbxx/test/upstream/datum/uuid.yaml')
-rw-r--r-- | ext/librethinkdbxx/test/upstream/datum/uuid.yaml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/librethinkdbxx/test/upstream/datum/uuid.yaml b/ext/librethinkdbxx/test/upstream/datum/uuid.yaml new file mode 100644 index 00000000..003e8604 --- /dev/null +++ b/ext/librethinkdbxx/test/upstream/datum/uuid.yaml @@ -0,0 +1,20 @@ +desc: Test that UUIDs work +tests: + - cd: r.uuid() + ot: uuid() + - cd: r.expr(r.uuid()) + ot: uuid() + - cd: r.type_of(r.uuid()) + ot: 'STRING' + - cd: r.uuid().ne(r.uuid()) + ot: true + - cd: r.uuid('magic') + ot: ('97dd10a5-4fc4-554f-86c5-0d2c2e3d5330') + - cd: r.uuid('magic').eq(r.uuid('magic')) + ot: true + - cd: r.uuid('magic').ne(r.uuid('beans')) + ot: true + - py: r.expr([1,2,3,4,5,6,7,8,9,10]).map(lambda u:r.uuid()).distinct().count() + js: r([1,2,3,4,5,6,7,8,9,10]).map(function(u) {return r.uuid();}).distinct().count() + rb: r.expr([1,2,3,4,5,6,7,8,9,10]).map {|u| r.uuid()}.distinct().count() + ot: 10 |