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

29 lines
967 B
YAML

desc: Fix transformations and states on artificial tables.
table_variable_name: tbl
tests:
- def: dtbl = r.db('rethinkdb').table('_debug_scratch')
- rb: dtbl.changes(include_states: true).limit(1)
ot: [{'state':'ready'}]
- rb: dtbl.changes(include_initial: true, include_states: true).limit(2)
ot: [{'state':'initializing'},{'state':'ready'}]
- rb: dtbl.insert({})['inserted']
ot: 1
- rb: dtbl.filter{false}.changes(include_states: true).limit(1)
ot: [{'state':'ready'}]
- rb: dtbl.filter{false}.changes(include_initial: true, include_states: true).limit(2)
ot: [{'state':'initializing'},{'state':'ready'}]
- rb: dtbl.map{1}.changes(include_states: true).limit(1)
ot: [{'state':'ready'}]
- rb: dtbl.map{1}.changes(include_initial: true).limit(1)
ot: [{'new_val':1}]
- rb: dtbl.map{1}.changes(include_initial: true, include_states: true).limit(3)
ot: [{'state':'initializing'},{'new_val':1},{'state':'ready'}]