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

20 lines
495 B
YAML

desc: Regression tests for issue #370, calling `map` after `db_list` or `table_list`
tests:
# Set up a stream
- cd: r.db('test').table_create('t370')
def: d = r.db('test')
# Map after db_list
- cd: r.db_list().map(r.row)
rb: r.db_list.map{|row| row}
ot: (['rethinkdb', 'test'])
# Map after table_list
- cd: d.table_list().map(r.row)
rb: d.table_list.map{|row| row}
ot: (['t370'])
# clean up
- cd: r.db('test').table_drop('t370')