{"size": 691, "ext": "js", "max_stars_repo_path": "test/polyglot/regression/453.js", "max_stars_repo_name": "mbroadst/rethunk2", "max_stars_repo_stars_event_min_datetime": "2017-01-05T18:21:53.000Z", "max_stars_repo_stars_event_max_datetime": "2017-01-05T18:21:53.000Z", "max_issues_repo_path": "test/polyglot/regression/453.js", "max_issues_repo_name": "mbroadst/rethunk2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/polyglot/regression/453.js", "max_forks_repo_name": "mbroadst/rethunk2", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 32.9047619048, "max_line_length": 139, "alphanum_fraction": 0.6164978292}
#!/usr/local/bin/node
// -*- coding: utf-8 -*-

'use strict';
const common = require('../common'),
      setup_table = common.setup_table,
      setup_table_check = common.setup_table_check,
      test = common.test,
      define = common.define,
      the_end = common.the_end;

setup_table('tbl', 'polyglot_regression_453_js7_2', 'test')
setup_table_check()

test("tbl.insert([{'a':1},{'a':2}])", "partial({'inserted':2})", 'line 5', {}, {})
test('tbl.map(function(x) { return tbl; })', 'err("ReqlQueryLogicError", \'Expected type DATUM but found TABLE:\', [0])', 'line 8', {}, {})
test("tbl.map(function(x) { return tbl.coerceTo('array'); }).count()", '2', 'line 13', {}, {})


the_end()
