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

21 lines
639 B
YAML

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