You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
639 B

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