func (suite *TimesTimeArithSuite) TestCases() { suite.T().Log("Running TimesTimeArithSuite: Test basic time arithmetic") // times/time_arith.yaml line #3 // rt1 = 1375147296.681 suite.T().Log("Possibly executing: var rt1 float64 = 1375147296.681") rt1 := 1375147296.681 _ = rt1 // Prevent any noused variable errors // times/time_arith.yaml line #4 // rt2 = 1375147296.682 suite.T().Log("Possibly executing: var rt2 float64 = 1375147296.682") rt2 := 1375147296.682 _ = rt2 // Prevent any noused variable errors // times/time_arith.yaml line #5 // rt3 = 1375147297.681 suite.T().Log("Possibly executing: var rt3 float64 = 1375147297.681") rt3 := 1375147297.681 _ = rt3 // Prevent any noused variable errors // times/time_arith.yaml line #6 // rt4 = 2375147296.681 suite.T().Log("Possibly executing: var rt4 float64 = 2375147296.681") rt4 := 2375147296.681 _ = rt4 // Prevent any noused variable errors // times/time_arith.yaml line #7 // rts = [rt1, rt2, rt3, rt4] suite.T().Log("Possibly executing: var rts []interface{} = []interface{}{rt1, rt2, rt3, rt4}") rts := []interface{}{rt1, rt2, rt3, rt4} _ = rts // Prevent any noused variable errors // times/time_arith.yaml line #9 // t1 = r.epoch_time(rt1) suite.T().Log("Possibly executing: var t1 r.Term = r.EpochTime(rt1)") t1 := r.EpochTime(rt1) _ = t1 // Prevent any noused variable errors // times/time_arith.yaml line #10 // t2 = r.epoch_time(rt2) suite.T().Log("Possibly executing: var t2 r.Term = r.EpochTime(rt2)") t2 := r.EpochTime(rt2) _ = t2 // Prevent any noused variable errors // times/time_arith.yaml line #11 // t3 = r.epoch_time(rt3) suite.T().Log("Possibly executing: var t3 r.Term = r.EpochTime(rt3)") t3 := r.EpochTime(rt3) _ = t3 // Prevent any noused variable errors // times/time_arith.yaml line #12 // t4 = r.epoch_time(rt4) suite.T().Log("Possibly executing: var t4 r.Term = r.EpochTime(rt4)") t4 := r.EpochTime(rt4) _ = t4 // Prevent any noused variable errors // times/time_arith.yaml line #13 // ts = r.expr([t1, t2, t3, t4]) suite.T().Log("Possibly executing: var ts r.Term = r.Expr([]interface{}{t1, t2, t3, t4})") ts := r.Expr([]interface{}{t1, t2, t3, t4}) _ = ts // Prevent any noused variable errors { // times/time_arith.yaml line #17 /* true */ var expected_ bool = true /* ((t2 - t1) * 1000).do(lambda x:(x > 0.99) & (x < 1.01)) */ suite.T().Log("About to run line #17: r.Sub(t2, t1).Mul(1000).Do(func(x r.Term) interface{} { return r.Gt(x, 0.99).And(r.Lt(x, 1.01))})") runAndAssert(suite.Suite, expected_, r.Sub(t2, t1).Mul(1000).Do(func(x r.Term) interface{} { return r.Gt(x, 0.99).And(r.Lt(x, 1.01)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #17") } { // times/time_arith.yaml line #20 /* 1 */ var expected_ int = 1 /* t3 - t1 */ suite.T().Log("About to run line #20: r.Sub(t3, t1)") runAndAssert(suite.Suite, expected_, r.Sub(t3, t1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #20") } { // times/time_arith.yaml line #23 /* 1000000000 */ var expected_ int = 1000000000 /* t4 - t1 */ suite.T().Log("About to run line #23: r.Sub(t4, t1)") runAndAssert(suite.Suite, expected_, r.Sub(t4, t1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #23") } { // times/time_arith.yaml line #28 /* true */ var expected_ bool = true /* ((t1 - t2) * 1000).do(lambda x:(x < -0.99) & (x > -1.01)) */ suite.T().Log("About to run line #28: r.Sub(t1, t2).Mul(1000).Do(func(x r.Term) interface{} { return r.Lt(x, -0.99).And(r.Gt(x, -1.01))})") runAndAssert(suite.Suite, expected_, r.Sub(t1, t2).Mul(1000).Do(func(x r.Term) interface{} { return r.Lt(x, -0.99).And(r.Gt(x, -1.01)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #28") } { // times/time_arith.yaml line #31 /* -1 */ var expected_ int = -1 /* t1 - t3 */ suite.T().Log("About to run line #31: r.Sub(t1, t3)") runAndAssert(suite.Suite, expected_, r.Sub(t1, t3), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #31") } { // times/time_arith.yaml line #34 /* -1000000000 */ var expected_ int = -1000000000 /* t1 - t4 */ suite.T().Log("About to run line #34: r.Sub(t1, t4)") runAndAssert(suite.Suite, expected_, r.Sub(t1, t4), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #34") } { // times/time_arith.yaml line #39 /* ([rt1, rt2, rt3, rt4]) */ var expected_ []interface{} = []interface{}{rt1, rt2, rt3, rt4} /* ts.map(lambda x:t1 + (x - t1)).map(lambda x:x.to_epoch_time()) */ suite.T().Log("About to run line #39: ts.Map(func(x r.Term) interface{} { return r.Add(t1, r.Sub(x, t1))}).Map(func(x r.Term) interface{} { return x.ToEpochTime()})") runAndAssert(suite.Suite, expected_, ts.Map(func(x r.Term) interface{} { return r.Add(t1, r.Sub(x, t1)) }).Map(func(x r.Term) interface{} { return x.ToEpochTime() }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #39") } { // times/time_arith.yaml line #43 /* err("ReqlQueryLogicError", "Expected type NUMBER but found PTYPE<TIME>.", []) */ var expected_ Err = err("ReqlQueryLogicError", "Expected type NUMBER but found PTYPE<TIME>.") /* ts.map(lambda x:(t1 + x) - t1).map(lambda x:x.to_epoch_time()) */ suite.T().Log("About to run line #43: ts.Map(func(x r.Term) interface{} { return r.Add(t1, x).Sub(t1)}).Map(func(x r.Term) interface{} { return x.ToEpochTime()})") runAndAssert(suite.Suite, expected_, ts.Map(func(x r.Term) interface{} { return r.Add(t1, x).Sub(t1) }).Map(func(x r.Term) interface{} { return x.ToEpochTime() }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #43") } { // times/time_arith.yaml line #47 /* ([rt1, rt2, rt3, rt4]) */ var expected_ []interface{} = []interface{}{rt1, rt2, rt3, rt4} /* ts.map(lambda x:t1 - (t1 - x)).map(lambda x:x.to_epoch_time()) */ suite.T().Log("About to run line #47: ts.Map(func(x r.Term) interface{} { return r.Sub(t1, r.Sub(t1, x))}).Map(func(x r.Term) interface{} { return x.ToEpochTime()})") runAndAssert(suite.Suite, expected_, ts.Map(func(x r.Term) interface{} { return r.Sub(t1, r.Sub(t1, x)) }).Map(func(x r.Term) interface{} { return x.ToEpochTime() }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #47") } { // times/time_arith.yaml line #52 /* ([[[false, true, true, false, true, false], [true, true, false, true, false, false], [true, true, false, true, false, false], [true, true, false, true, false, false]], [[false, false, false, true, true, true], [false, true, true, false, true, false], [true, true, false, true, false, false], [true, true, false, true, false, false]], [[false, false, false, true, true, true], [false, false, false, true, true, true], [false, true, true, false, true, false], [true, true, false, true, false, false]], [[false, false, false, true, true, true], [false, false, false, true, true, true], [false, false, false, true, true, true], [false, true, true, false, true, false]]]) */ var expected_ []interface{} = []interface{}{[]interface{}{[]interface{}{false, true, true, false, true, false}, []interface{}{true, true, false, true, false, false}, []interface{}{true, true, false, true, false, false}, []interface{}{true, true, false, true, false, false}}, []interface{}{[]interface{}{false, false, false, true, true, true}, []interface{}{false, true, true, false, true, false}, []interface{}{true, true, false, true, false, false}, []interface{}{true, true, false, true, false, false}}, []interface{}{[]interface{}{false, false, false, true, true, true}, []interface{}{false, false, false, true, true, true}, []interface{}{false, true, true, false, true, false}, []interface{}{true, true, false, true, false, false}}, []interface{}{[]interface{}{false, false, false, true, true, true}, []interface{}{false, false, false, true, true, true}, []interface{}{false, false, false, true, true, true}, []interface{}{false, true, true, false, true, false}}} /* ts.map(lambda x:ts.map(lambda y:[x < y, x <= y, x == y, x != y, x >= y, x > y])) */ suite.T().Log("About to run line #52: ts.Map(func(x r.Term) interface{} { return ts.Map(func(y r.Term) interface{} { return []interface{}{r.Lt(x, y), r.Le(x, y), r.Eq(x, y), r.Ne(x, y), r.Ge(x, y), r.Gt(x, y)}})})") runAndAssert(suite.Suite, expected_, ts.Map(func(x r.Term) interface{} { return ts.Map(func(y r.Term) interface{} { return []interface{}{r.Lt(x, y), r.Le(x, y), r.Eq(x, y), r.Ne(x, y), r.Ge(x, y), r.Gt(x, y)} }) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #52") } // times/time_arith.yaml line #73 // datum_types = r.expr([null, true, false, 1, "1", [1], {"1":1}, r.binary(b'')]) suite.T().Log("Possibly executing: var datum_types r.Term = r.Expr([]interface{}{nil, true, false, 1, '1', []interface{}{1}, map[interface{}]interface{}{'1': 1, }, r.Binary([]byte{})})") datum_types := r.Expr([]interface{}{nil, true, false, 1, "1", []interface{}{1}, map[interface{}]interface{}{"1": 1}, r.Binary([]byte{})}) _ = datum_types // Prevent any noused variable errors { // times/time_arith.yaml line #79 /* ([[[true, true, false, true, false, false], [false, false, false, true, true, true]], [[true, true, false, true, false, false], [false, false, false, true, true, true]], [[true, true, false, true, false, false], [false, false, false, true, true, true]], [[true, true, false, true, false, false], [false, false, false, true, true, true]], [[false, false, false, true, true, true], [true, true, false, true, false, false]], [[true, true, false, true, false, false], [false, false, false, true, true, true]], [[true, true, false, true, false, false], [false, false, false, true, true, true]], [[true, true, false, true, false, false], [false, false, false, true, true, true]]]) */ var expected_ []interface{} = []interface{}{[]interface{}{[]interface{}{true, true, false, true, false, false}, []interface{}{false, false, false, true, true, true}}, []interface{}{[]interface{}{true, true, false, true, false, false}, []interface{}{false, false, false, true, true, true}}, []interface{}{[]interface{}{true, true, false, true, false, false}, []interface{}{false, false, false, true, true, true}}, []interface{}{[]interface{}{true, true, false, true, false, false}, []interface{}{false, false, false, true, true, true}}, []interface{}{[]interface{}{false, false, false, true, true, true}, []interface{}{true, true, false, true, false, false}}, []interface{}{[]interface{}{true, true, false, true, false, false}, []interface{}{false, false, false, true, true, true}}, []interface{}{[]interface{}{true, true, false, true, false, false}, []interface{}{false, false, false, true, true, true}}, []interface{}{[]interface{}{true, true, false, true, false, false}, []interface{}{false, false, false, true, true, true}}} /* datum_types.map(lambda x:r.expr([[x, t1], [t1, x]]).map(lambda xy:xy[0].do(lambda x2:xy[1].do(lambda y:[x2 < y, x2 <= y, x2 == y, x2 != y, x2 >= y, x2 > y])))) */ suite.T().Log("About to run line #79: datum_types.Map(func(x r.Term) interface{} { return r.Expr([]interface{}{[]interface{}{x, t1}, []interface{}{t1, x}}).Map(func(xy r.Term) interface{} { return xy.AtIndex(0).Do(func(x2 r.Term) interface{} { return xy.AtIndex(1).Do(func(y r.Term) interface{} { return []interface{}{r.Lt(x2, y), r.Le(x2, y), r.Eq(x2, y), r.Ne(x2, y), r.Ge(x2, y), r.Gt(x2, y)}})})})})") runAndAssert(suite.Suite, expected_, datum_types.Map(func(x r.Term) interface{} { return r.Expr([]interface{}{[]interface{}{x, t1}, []interface{}{t1, x}}).Map(func(xy r.Term) interface{} { return xy.AtIndex(0).Do(func(x2 r.Term) interface{} { return xy.AtIndex(1).Do(func(y r.Term) interface{} { return []interface{}{r.Lt(x2, y), r.Le(x2, y), r.Eq(x2, y), r.Ne(x2, y), r.Ge(x2, y), r.Gt(x2, y)} }) }) }) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #79") } { // times/time_arith.yaml line #99 /* ([[[false, true, true, true], [false, false, true, true], [false, false, false, true], [false, false, false, false]], [[false, false, false, false], [false, false, true, true], [false, false, false, true], [false, false, false, false]], [[false, false, false, false], [false, false, false, false], [false, false, false, true], [false, false, false, false]], [[false, false, false, false], [false, false, false, false], [false, false, false, false], [false, false, false, false]]]) */ var expected_ []interface{} = []interface{}{[]interface{}{[]interface{}{false, true, true, true}, []interface{}{false, false, true, true}, []interface{}{false, false, false, true}, []interface{}{false, false, false, false}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, true, true}, []interface{}{false, false, false, true}, []interface{}{false, false, false, false}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, true}, []interface{}{false, false, false, false}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}}} /* ts.map(lambda a:ts.map(lambda b:ts.map(lambda c:b.during(a, c)))) */ suite.T().Log("About to run line #99: ts.Map(func(a r.Term) interface{} { return ts.Map(func(b r.Term) interface{} { return ts.Map(func(c r.Term) interface{} { return b.During(a, c)})})})") runAndAssert(suite.Suite, expected_, ts.Map(func(a r.Term) interface{} { return ts.Map(func(b r.Term) interface{} { return ts.Map(func(c r.Term) interface{} { return b.During(a, c) }) }) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #99") } { // times/time_arith.yaml line #119 /* ([[[false, false, false, false], [false, false, true, true], [false, false, false, true], [false, false, false, false]], [[false, false, false, false], [false, false, false, false], [false, false, false, true], [false, false, false, false]], [[false, false, false, false], [false, false, false, false], [false, false, false, false], [false, false, false, false]], [[false, false, false, false], [false, false, false, false], [false, false, false, false], [false, false, false, false]]]) */ var expected_ []interface{} = []interface{}{[]interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, true, true}, []interface{}{false, false, false, true}, []interface{}{false, false, false, false}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, true}, []interface{}{false, false, false, false}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}}} /* ts.map(lambda a:ts.map(lambda b:ts.map(lambda c:b.during(a, c, left_bound='open')))) */ suite.T().Log("About to run line #119: ts.Map(func(a r.Term) interface{} { return ts.Map(func(b r.Term) interface{} { return ts.Map(func(c r.Term) interface{} { return b.During(a, c).OptArgs(r.DuringOpts{LeftBound: 'open', })})})})") runAndAssert(suite.Suite, expected_, ts.Map(func(a r.Term) interface{} { return ts.Map(func(b r.Term) interface{} { return ts.Map(func(c r.Term) interface{} { return b.During(a, c).OptArgs(r.DuringOpts{LeftBound: "open"}) }) }) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #119") } { // times/time_arith.yaml line #139 /* ([[[true, true, true, true], [false, true, true, true], [false, false, true, true], [false, false, false, true]], [[false, false, false, false], [false, true, true, true], [false, false, true, true], [false, false, false, true]], [[false, false, false, false], [false, false, false, false], [false, false, true, true], [false, false, false, true]], [[false, false, false, false], [false, false, false, false], [false, false, false, false], [false, false, false, true]]]) */ var expected_ []interface{} = []interface{}{[]interface{}{[]interface{}{true, true, true, true}, []interface{}{false, true, true, true}, []interface{}{false, false, true, true}, []interface{}{false, false, false, true}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, true, true, true}, []interface{}{false, false, true, true}, []interface{}{false, false, false, true}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, true, true}, []interface{}{false, false, false, true}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, true}}} /* ts.map(lambda a:ts.map(lambda b:ts.map(lambda c:b.during(a, c, right_bound='closed')))) */ suite.T().Log("About to run line #139: ts.Map(func(a r.Term) interface{} { return ts.Map(func(b r.Term) interface{} { return ts.Map(func(c r.Term) interface{} { return b.During(a, c).OptArgs(r.DuringOpts{RightBound: 'closed', })})})})") runAndAssert(suite.Suite, expected_, ts.Map(func(a r.Term) interface{} { return ts.Map(func(b r.Term) interface{} { return ts.Map(func(c r.Term) interface{} { return b.During(a, c).OptArgs(r.DuringOpts{RightBound: "closed"}) }) }) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #139") } { // times/time_arith.yaml line #159 /* ([[[false, false, false, false], [false, true, true, true], [false, false, true, true], [false, false, false, true]], [[false, false, false, false], [false, false, false, false], [false, false, true, true], [false, false, false, true]], [[false, false, false, false], [false, false, false, false], [false, false, false, false], [false, false, false, true]], [[false, false, false, false], [false, false, false, false], [false, false, false, false], [false, false, false, false]]]) */ var expected_ []interface{} = []interface{}{[]interface{}{[]interface{}{false, false, false, false}, []interface{}{false, true, true, true}, []interface{}{false, false, true, true}, []interface{}{false, false, false, true}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, true, true}, []interface{}{false, false, false, true}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, true}}, []interface{}{[]interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}, []interface{}{false, false, false, false}}} /* ts.map(lambda a:ts.map(lambda b:ts.map(lambda c:b.during(a, c, left_bound='open', right_bound='closed')))) */ suite.T().Log("About to run line #159: ts.Map(func(a r.Term) interface{} { return ts.Map(func(b r.Term) interface{} { return ts.Map(func(c r.Term) interface{} { return b.During(a, c).OptArgs(r.DuringOpts{LeftBound: 'open', RightBound: 'closed', })})})})") runAndAssert(suite.Suite, expected_, ts.Map(func(a r.Term) interface{} { return ts.Map(func(b r.Term) interface{} { return ts.Map(func(c r.Term) interface{} { return b.During(a, c).OptArgs(r.DuringOpts{LeftBound: "open", RightBound: "closed"}) }) }) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #159") } { // times/time_arith.yaml line #179 /* rts */ var expected_ []interface{} = rts /* ts.map(lambda x:x.date() + x.time_of_day()).map(lambda x:x.to_epoch_time()) */ suite.T().Log("About to run line #179: ts.Map(func(x r.Term) interface{} { return x.Date().Add(x.TimeOfDay())}).Map(func(x r.Term) interface{} { return x.ToEpochTime()})") runAndAssert(suite.Suite, expected_, ts.Map(func(x r.Term) interface{} { return x.Date().Add(x.TimeOfDay()) }).Map(func(x r.Term) interface{} { return x.ToEpochTime() }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #179") } { // times/time_arith.yaml line #185 /* rt1 */ var expected_ float64 = rt1 /* r.epoch_time(rt1).do(r.js("(function(data){return data})")).to_epoch_time() */ suite.T().Log("About to run line #185: r.EpochTime(rt1).Do(r.JS('(function(data){return data})')).ToEpochTime()") runAndAssert(suite.Suite, expected_, r.EpochTime(rt1).Do(r.JS("(function(data){return data})")).ToEpochTime(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #185") } { // times/time_arith.yaml line #190 /* ("2012-08-01T00:00:00+00:00") */ var expected_ string = "2012-08-01T00:00:00+00:00" /* r.do(r.js("new Date('2012-08-01')")).to_iso8601() */ suite.T().Log("About to run line #190: r.Do(r.JS('new Date('2012-08-01')')).ToISO8601()") runAndAssert(suite.Suite, expected_, r.Do(r.JS("new Date('2012-08-01')")).ToISO8601(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #190") } { // times/time_arith.yaml line #195 /* ("2012-08-01T00:00:00+00:00") */ var expected_ string = "2012-08-01T00:00:00+00:00" /* r.do(r.js("(function(x){doc = new Object(); doc.date = new Date('2012-08-01'); return doc;})"))["date"].to_iso8601() */ suite.T().Log("About to run line #195: r.Do(r.JS('(function(x){doc = new Object(); doc.date = new Date('2012-08-01'); return doc;})')).AtIndex('date').ToISO8601()") runAndAssert(suite.Suite, expected_, r.Do(r.JS("(function(x){doc = new Object(); doc.date = new Date('2012-08-01'); return doc;})")).AtIndex("date").ToISO8601(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #195") } }
func (suite *DatumBinarySuite) TestCases() { suite.T().Log("Running DatumBinarySuite: Tests of converstion to and from the RQL binary type") // datum/binary.yaml line #8 // s = b'' suite.T().Log("Possibly executing: var s []byte = []byte{}") s := []byte{} _ = s // Prevent any noused variable errors { // datum/binary.yaml line #10 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #10: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #10") } { // datum/binary.yaml line #12 /* 0 */ var expected_ int = 0 /* r.binary(s).count() */ suite.T().Log("About to run line #12: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #12") } // datum/binary.yaml line #17 // s = b'\x00' suite.T().Log("Possibly executing: var s []byte = []byte{0}") s = []byte{0} { // datum/binary.yaml line #19 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #19: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #19") } { // datum/binary.yaml line #21 /* 1 */ var expected_ int = 1 /* r.binary(s).count() */ suite.T().Log("About to run line #21: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #21") } // datum/binary.yaml line #26 // s = b'\x00\x42' suite.T().Log("Possibly executing: var s []byte = []byte{0,66}") s = []byte{0, 66} { // datum/binary.yaml line #28 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #28: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #28") } { // datum/binary.yaml line #30 /* 2 */ var expected_ int = 2 /* r.binary(s).count() */ suite.T().Log("About to run line #30: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #30") } // datum/binary.yaml line #35 // s = b'\x00\xfe\x7a' suite.T().Log("Possibly executing: var s []byte = []byte{0,254,122}") s = []byte{0, 254, 122} { // datum/binary.yaml line #37 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #37: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #37") } { // datum/binary.yaml line #39 /* 3 */ var expected_ int = 3 /* r.binary(s).count() */ suite.T().Log("About to run line #39: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #39") } // datum/binary.yaml line #44 // s = b'\xed\xfe\x00\xba' suite.T().Log("Possibly executing: var s []byte = []byte{237,254,0,186}") s = []byte{237, 254, 0, 186} { // datum/binary.yaml line #46 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #46: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #46") } { // datum/binary.yaml line #48 /* 4 */ var expected_ int = 4 /* r.binary(s).count() */ suite.T().Log("About to run line #48: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #48") } // datum/binary.yaml line #53 // s = b'\x50\xf9\x00\x77\xf9' suite.T().Log("Possibly executing: var s []byte = []byte{80,249,0,119,249}") s = []byte{80, 249, 0, 119, 249} { // datum/binary.yaml line #55 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #55: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #55") } { // datum/binary.yaml line #57 /* 5 */ var expected_ int = 5 /* r.binary(s).count() */ suite.T().Log("About to run line #57: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #57") } // datum/binary.yaml line #62 // s = b'\x2f\xe3\xb5\x57\x00\x92' suite.T().Log("Possibly executing: var s []byte = []byte{47,227,181,87,0,146}") s = []byte{47, 227, 181, 87, 0, 146} { // datum/binary.yaml line #64 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #64: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #64") } { // datum/binary.yaml line #66 /* 6 */ var expected_ int = 6 /* r.binary(s).count() */ suite.T().Log("About to run line #66: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #66") } // datum/binary.yaml line #71 // s = b'\xa9\x43\x54\xe9\x00\xf8\xfb' suite.T().Log("Possibly executing: var s []byte = []byte{169,67,84,233,0,248,251}") s = []byte{169, 67, 84, 233, 0, 248, 251} { // datum/binary.yaml line #73 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #73: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #73") } { // datum/binary.yaml line #75 /* 7 */ var expected_ int = 7 /* r.binary(s).count() */ suite.T().Log("About to run line #75: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #75") } // datum/binary.yaml line #80 // s = b'\x57\xbb\xe5\x82\x8b\xd3\x00\xf9' suite.T().Log("Possibly executing: var s []byte = []byte{87,187,229,130,139,211,0,249}") s = []byte{87, 187, 229, 130, 139, 211, 0, 249} { // datum/binary.yaml line #82 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #82: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #82") } { // datum/binary.yaml line #84 /* 8 */ var expected_ int = 8 /* r.binary(s).count() */ suite.T().Log("About to run line #84: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #84") } // datum/binary.yaml line #89 // s = b'\x44\x1b\x3e\x00\x13\x19\x29\x2a\xbf' suite.T().Log("Possibly executing: var s []byte = []byte{68,27,62,0,19,25,41,42,191}") s = []byte{68, 27, 62, 0, 19, 25, 41, 42, 191} { // datum/binary.yaml line #91 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #91: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #91") } { // datum/binary.yaml line #93 /* 9 */ var expected_ int = 9 /* r.binary(s).count() */ suite.T().Log("About to run line #93: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #93") } // datum/binary.yaml line #98 // s = b'\x8a\x1d\x09\x00\x5d\x60\x6b\x2e\x70\xd9' suite.T().Log("Possibly executing: var s []byte = []byte{138,29,9,0,93,96,107,46,112,217}") s = []byte{138, 29, 9, 0, 93, 96, 107, 46, 112, 217} { // datum/binary.yaml line #100 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #100: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #100") } { // datum/binary.yaml line #102 /* 10 */ var expected_ int = 10 /* r.binary(s).count() */ suite.T().Log("About to run line #102: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #102") } // datum/binary.yaml line #107 // s = b'\x00\xaf\x47\x4b\x38\x99\x14\x8d\x8f\x10\x51' suite.T().Log("Possibly executing: var s []byte = []byte{0,175,71,75,56,153,20,141,143,16,81}") s = []byte{0, 175, 71, 75, 56, 153, 20, 141, 143, 16, 81} { // datum/binary.yaml line #109 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #109: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #109") } { // datum/binary.yaml line #111 /* 11 */ var expected_ int = 11 /* r.binary(s).count() */ suite.T().Log("About to run line #111: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #111") } // datum/binary.yaml line #116 // s = b'\x45\x39\x00\xf7\xc2\x37\xfd\xe0\x38\x82\x40\xa9' suite.T().Log("Possibly executing: var s []byte = []byte{69,57,0,247,194,55,253,224,56,130,64,169}") s = []byte{69, 57, 0, 247, 194, 55, 253, 224, 56, 130, 64, 169} { // datum/binary.yaml line #118 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #118: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #118") } { // datum/binary.yaml line #120 /* 12 */ var expected_ int = 12 /* r.binary(s).count() */ suite.T().Log("About to run line #120: r.Binary(s).Count()") runAndAssert(suite.Suite, expected_, r.Binary(s).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #120") } // datum/binary.yaml line #128 // a = b'\x00' suite.T().Log("Possibly executing: var a []byte = []byte{0}") a := []byte{0} _ = a // Prevent any noused variable errors // datum/binary.yaml line #132 // b = b'\x00\x01' suite.T().Log("Possibly executing: var b []byte = []byte{0,1}") b := []byte{0, 1} _ = b // Prevent any noused variable errors // datum/binary.yaml line #136 // c = b'\x01' suite.T().Log("Possibly executing: var c []byte = []byte{1}") c := []byte{1} _ = c // Prevent any noused variable errors // datum/binary.yaml line #140 // d = b'\x70\x22' suite.T().Log("Possibly executing: var d []byte = []byte{112,34}") d := []byte{112, 34} _ = d // Prevent any noused variable errors // datum/binary.yaml line #144 // e = b'\x80' suite.T().Log("Possibly executing: var e []byte = []byte{128}") e := []byte{128} _ = e // Prevent any noused variable errors // datum/binary.yaml line #148 // f = b'\xFE' suite.T().Log("Possibly executing: var f []byte = []byte{254}") f := []byte{254} _ = f // Prevent any noused variable errors { // datum/binary.yaml line #151 /* true */ var expected_ bool = true /* r.binary(a).eq(r.binary(a)) */ suite.T().Log("About to run line #151: r.Binary(a).Eq(r.Binary(a))") runAndAssert(suite.Suite, expected_, r.Binary(a).Eq(r.Binary(a)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #151") } { // datum/binary.yaml line #153 /* true */ var expected_ bool = true /* r.binary(a).le(r.binary(a)) */ suite.T().Log("About to run line #153: r.Binary(a).Le(r.Binary(a))") runAndAssert(suite.Suite, expected_, r.Binary(a).Le(r.Binary(a)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #153") } { // datum/binary.yaml line #155 /* true */ var expected_ bool = true /* r.binary(a).ge(r.binary(a)) */ suite.T().Log("About to run line #155: r.Binary(a).Ge(r.Binary(a))") runAndAssert(suite.Suite, expected_, r.Binary(a).Ge(r.Binary(a)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #155") } { // datum/binary.yaml line #157 /* false */ var expected_ bool = false /* r.binary(a).ne(r.binary(a)) */ suite.T().Log("About to run line #157: r.Binary(a).Ne(r.Binary(a))") runAndAssert(suite.Suite, expected_, r.Binary(a).Ne(r.Binary(a)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #157") } { // datum/binary.yaml line #159 /* false */ var expected_ bool = false /* r.binary(a).lt(r.binary(a)) */ suite.T().Log("About to run line #159: r.Binary(a).Lt(r.Binary(a))") runAndAssert(suite.Suite, expected_, r.Binary(a).Lt(r.Binary(a)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #159") } { // datum/binary.yaml line #161 /* false */ var expected_ bool = false /* r.binary(a).gt(r.binary(a)) */ suite.T().Log("About to run line #161: r.Binary(a).Gt(r.Binary(a))") runAndAssert(suite.Suite, expected_, r.Binary(a).Gt(r.Binary(a)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #161") } { // datum/binary.yaml line #165 /* true */ var expected_ bool = true /* r.binary(a).ne(r.binary(b)) */ suite.T().Log("About to run line #165: r.Binary(a).Ne(r.Binary(b))") runAndAssert(suite.Suite, expected_, r.Binary(a).Ne(r.Binary(b)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #165") } { // datum/binary.yaml line #167 /* true */ var expected_ bool = true /* r.binary(a).lt(r.binary(b)) */ suite.T().Log("About to run line #167: r.Binary(a).Lt(r.Binary(b))") runAndAssert(suite.Suite, expected_, r.Binary(a).Lt(r.Binary(b)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #167") } { // datum/binary.yaml line #169 /* true */ var expected_ bool = true /* r.binary(a).le(r.binary(b)) */ suite.T().Log("About to run line #169: r.Binary(a).Le(r.Binary(b))") runAndAssert(suite.Suite, expected_, r.Binary(a).Le(r.Binary(b)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #169") } { // datum/binary.yaml line #171 /* false */ var expected_ bool = false /* r.binary(a).ge(r.binary(b)) */ suite.T().Log("About to run line #171: r.Binary(a).Ge(r.Binary(b))") runAndAssert(suite.Suite, expected_, r.Binary(a).Ge(r.Binary(b)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #171") } { // datum/binary.yaml line #173 /* false */ var expected_ bool = false /* r.binary(a).gt(r.binary(b)) */ suite.T().Log("About to run line #173: r.Binary(a).Gt(r.Binary(b))") runAndAssert(suite.Suite, expected_, r.Binary(a).Gt(r.Binary(b)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #173") } { // datum/binary.yaml line #175 /* false */ var expected_ bool = false /* r.binary(a).eq(r.binary(b)) */ suite.T().Log("About to run line #175: r.Binary(a).Eq(r.Binary(b))") runAndAssert(suite.Suite, expected_, r.Binary(a).Eq(r.Binary(b)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #175") } { // datum/binary.yaml line #179 /* true */ var expected_ bool = true /* r.binary(b).ne(r.binary(c)) */ suite.T().Log("About to run line #179: r.Binary(b).Ne(r.Binary(c))") runAndAssert(suite.Suite, expected_, r.Binary(b).Ne(r.Binary(c)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #179") } { // datum/binary.yaml line #181 /* true */ var expected_ bool = true /* r.binary(b).lt(r.binary(c)) */ suite.T().Log("About to run line #181: r.Binary(b).Lt(r.Binary(c))") runAndAssert(suite.Suite, expected_, r.Binary(b).Lt(r.Binary(c)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #181") } { // datum/binary.yaml line #183 /* true */ var expected_ bool = true /* r.binary(b).le(r.binary(c)) */ suite.T().Log("About to run line #183: r.Binary(b).Le(r.Binary(c))") runAndAssert(suite.Suite, expected_, r.Binary(b).Le(r.Binary(c)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #183") } { // datum/binary.yaml line #185 /* false */ var expected_ bool = false /* r.binary(b).ge(r.binary(c)) */ suite.T().Log("About to run line #185: r.Binary(b).Ge(r.Binary(c))") runAndAssert(suite.Suite, expected_, r.Binary(b).Ge(r.Binary(c)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #185") } { // datum/binary.yaml line #187 /* false */ var expected_ bool = false /* r.binary(b).gt(r.binary(c)) */ suite.T().Log("About to run line #187: r.Binary(b).Gt(r.Binary(c))") runAndAssert(suite.Suite, expected_, r.Binary(b).Gt(r.Binary(c)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #187") } { // datum/binary.yaml line #189 /* false */ var expected_ bool = false /* r.binary(b).eq(r.binary(c)) */ suite.T().Log("About to run line #189: r.Binary(b).Eq(r.Binary(c))") runAndAssert(suite.Suite, expected_, r.Binary(b).Eq(r.Binary(c)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #189") } { // datum/binary.yaml line #193 /* true */ var expected_ bool = true /* r.binary(c).ne(r.binary(d)) */ suite.T().Log("About to run line #193: r.Binary(c).Ne(r.Binary(d))") runAndAssert(suite.Suite, expected_, r.Binary(c).Ne(r.Binary(d)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #193") } { // datum/binary.yaml line #195 /* true */ var expected_ bool = true /* r.binary(c).lt(r.binary(d)) */ suite.T().Log("About to run line #195: r.Binary(c).Lt(r.Binary(d))") runAndAssert(suite.Suite, expected_, r.Binary(c).Lt(r.Binary(d)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #195") } { // datum/binary.yaml line #197 /* true */ var expected_ bool = true /* r.binary(c).le(r.binary(d)) */ suite.T().Log("About to run line #197: r.Binary(c).Le(r.Binary(d))") runAndAssert(suite.Suite, expected_, r.Binary(c).Le(r.Binary(d)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #197") } { // datum/binary.yaml line #199 /* false */ var expected_ bool = false /* r.binary(c).ge(r.binary(d)) */ suite.T().Log("About to run line #199: r.Binary(c).Ge(r.Binary(d))") runAndAssert(suite.Suite, expected_, r.Binary(c).Ge(r.Binary(d)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #199") } { // datum/binary.yaml line #201 /* false */ var expected_ bool = false /* r.binary(c).gt(r.binary(d)) */ suite.T().Log("About to run line #201: r.Binary(c).Gt(r.Binary(d))") runAndAssert(suite.Suite, expected_, r.Binary(c).Gt(r.Binary(d)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #201") } { // datum/binary.yaml line #203 /* false */ var expected_ bool = false /* r.binary(c).eq(r.binary(d)) */ suite.T().Log("About to run line #203: r.Binary(c).Eq(r.Binary(d))") runAndAssert(suite.Suite, expected_, r.Binary(c).Eq(r.Binary(d)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #203") } { // datum/binary.yaml line #207 /* true */ var expected_ bool = true /* r.binary(d).ne(r.binary(e)) */ suite.T().Log("About to run line #207: r.Binary(d).Ne(r.Binary(e))") runAndAssert(suite.Suite, expected_, r.Binary(d).Ne(r.Binary(e)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #207") } { // datum/binary.yaml line #209 /* true */ var expected_ bool = true /* r.binary(d).lt(r.binary(e)) */ suite.T().Log("About to run line #209: r.Binary(d).Lt(r.Binary(e))") runAndAssert(suite.Suite, expected_, r.Binary(d).Lt(r.Binary(e)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #209") } { // datum/binary.yaml line #211 /* true */ var expected_ bool = true /* r.binary(d).le(r.binary(e)) */ suite.T().Log("About to run line #211: r.Binary(d).Le(r.Binary(e))") runAndAssert(suite.Suite, expected_, r.Binary(d).Le(r.Binary(e)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #211") } { // datum/binary.yaml line #213 /* false */ var expected_ bool = false /* r.binary(d).ge(r.binary(e)) */ suite.T().Log("About to run line #213: r.Binary(d).Ge(r.Binary(e))") runAndAssert(suite.Suite, expected_, r.Binary(d).Ge(r.Binary(e)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #213") } { // datum/binary.yaml line #215 /* false */ var expected_ bool = false /* r.binary(d).gt(r.binary(e)) */ suite.T().Log("About to run line #215: r.Binary(d).Gt(r.Binary(e))") runAndAssert(suite.Suite, expected_, r.Binary(d).Gt(r.Binary(e)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #215") } { // datum/binary.yaml line #217 /* false */ var expected_ bool = false /* r.binary(d).eq(r.binary(e)) */ suite.T().Log("About to run line #217: r.Binary(d).Eq(r.Binary(e))") runAndAssert(suite.Suite, expected_, r.Binary(d).Eq(r.Binary(e)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #217") } { // datum/binary.yaml line #221 /* true */ var expected_ bool = true /* r.binary(e).ne(r.binary(f)) */ suite.T().Log("About to run line #221: r.Binary(e).Ne(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(e).Ne(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #221") } { // datum/binary.yaml line #223 /* true */ var expected_ bool = true /* r.binary(e).lt(r.binary(f)) */ suite.T().Log("About to run line #223: r.Binary(e).Lt(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(e).Lt(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #223") } { // datum/binary.yaml line #225 /* true */ var expected_ bool = true /* r.binary(e).le(r.binary(f)) */ suite.T().Log("About to run line #225: r.Binary(e).Le(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(e).Le(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #225") } { // datum/binary.yaml line #227 /* false */ var expected_ bool = false /* r.binary(e).ge(r.binary(f)) */ suite.T().Log("About to run line #227: r.Binary(e).Ge(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(e).Ge(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #227") } { // datum/binary.yaml line #229 /* false */ var expected_ bool = false /* r.binary(e).gt(r.binary(f)) */ suite.T().Log("About to run line #229: r.Binary(e).Gt(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(e).Gt(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #229") } { // datum/binary.yaml line #231 /* false */ var expected_ bool = false /* r.binary(e).eq(r.binary(f)) */ suite.T().Log("About to run line #231: r.Binary(e).Eq(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(e).Eq(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #231") } { // datum/binary.yaml line #235 /* true */ var expected_ bool = true /* r.binary(f).eq(r.binary(f)) */ suite.T().Log("About to run line #235: r.Binary(f).Eq(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(f).Eq(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #235") } { // datum/binary.yaml line #237 /* true */ var expected_ bool = true /* r.binary(f).le(r.binary(f)) */ suite.T().Log("About to run line #237: r.Binary(f).Le(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(f).Le(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #237") } { // datum/binary.yaml line #239 /* true */ var expected_ bool = true /* r.binary(f).ge(r.binary(f)) */ suite.T().Log("About to run line #239: r.Binary(f).Ge(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(f).Ge(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #239") } { // datum/binary.yaml line #241 /* false */ var expected_ bool = false /* r.binary(f).ne(r.binary(f)) */ suite.T().Log("About to run line #241: r.Binary(f).Ne(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(f).Ne(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #241") } { // datum/binary.yaml line #243 /* false */ var expected_ bool = false /* r.binary(f).lt(r.binary(f)) */ suite.T().Log("About to run line #243: r.Binary(f).Lt(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(f).Lt(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #243") } { // datum/binary.yaml line #245 /* false */ var expected_ bool = false /* r.binary(f).gt(r.binary(f)) */ suite.T().Log("About to run line #245: r.Binary(f).Gt(r.Binary(f))") runAndAssert(suite.Suite, expected_, r.Binary(f).Gt(r.Binary(f)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #245") } { // datum/binary.yaml line #269 /* 'foo' */ var expected_ string = "foo" /* r.binary(b'foo').coerce_to('string') */ suite.T().Log("About to run line #269: r.Binary([]byte{102,111,111}).CoerceTo('string')") runAndAssert(suite.Suite, expected_, r.Binary([]byte{102, 111, 111}).CoerceTo("string"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #269") } { // datum/binary.yaml line #284 /* b'foo' */ var expected_ []byte = []byte{102, 111, 111} /* r.expr('foo').coerce_to('binary') */ suite.T().Log("About to run line #284: r.Expr('foo').CoerceTo('binary')") runAndAssert(suite.Suite, expected_, r.Expr("foo").CoerceTo("binary"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #284") } { // datum/binary.yaml line #287 /* True */ var expected_ bool = true /* r.binary(a).coerce_to('bool') */ suite.T().Log("About to run line #287: r.Binary(a).CoerceTo('bool')") runAndAssert(suite.Suite, expected_, r.Binary(a).CoerceTo("bool"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #287") } { // datum/binary.yaml line #290 /* b'foo' */ var expected_ []byte = []byte{102, 111, 111} /* r.binary(b'foo').coerce_to('binary') */ suite.T().Log("About to run line #290: r.Binary([]byte{102,111,111}).CoerceTo('binary')") runAndAssert(suite.Suite, expected_, r.Binary([]byte{102, 111, 111}).CoerceTo("binary"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #290") } { // datum/binary.yaml line #294 /* b'ef' */ var expected_ []byte = []byte{101, 102} /* r.binary(b'abcdefg').slice(-3,-1) */ suite.T().Log("About to run line #294: r.Binary([]byte{97,98,99,100,101,102,103}).Slice(-3, -1)") runAndAssert(suite.Suite, expected_, r.Binary([]byte{97, 98, 99, 100, 101, 102, 103}).Slice(-3, -1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #294") } { // datum/binary.yaml line #296 /* b'ab' */ var expected_ []byte = []byte{97, 98} /* r.binary(b'abcdefg').slice(0, 2) */ suite.T().Log("About to run line #296: r.Binary([]byte{97,98,99,100,101,102,103}).Slice(0, 2)") runAndAssert(suite.Suite, expected_, r.Binary([]byte{97, 98, 99, 100, 101, 102, 103}).Slice(0, 2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #296") } { // datum/binary.yaml line #298 /* b'def' */ var expected_ []byte = []byte{100, 101, 102} /* r.binary(b'abcdefg').slice(3, -1) */ suite.T().Log("About to run line #298: r.Binary([]byte{97,98,99,100,101,102,103}).Slice(3, -1)") runAndAssert(suite.Suite, expected_, r.Binary([]byte{97, 98, 99, 100, 101, 102, 103}).Slice(3, -1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #298") } { // datum/binary.yaml line #300 /* b'cde' */ var expected_ []byte = []byte{99, 100, 101} /* r.binary(b'abcdefg').slice(-5, 5) */ suite.T().Log("About to run line #300: r.Binary([]byte{97,98,99,100,101,102,103}).Slice(-5, 5)") runAndAssert(suite.Suite, expected_, r.Binary([]byte{97, 98, 99, 100, 101, 102, 103}).Slice(-5, 5), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #300") } { // datum/binary.yaml line #302 /* b'ab' */ var expected_ []byte = []byte{97, 98} /* r.binary(b'abcdefg').slice(-8, 2) */ suite.T().Log("About to run line #302: r.Binary([]byte{97,98,99,100,101,102,103}).Slice(-8, 2)") runAndAssert(suite.Suite, expected_, r.Binary([]byte{97, 98, 99, 100, 101, 102, 103}).Slice(-8, 2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #302") } { // datum/binary.yaml line #304 /* b'fg' */ var expected_ []byte = []byte{102, 103} /* r.binary(b'abcdefg').slice(5, 7) */ suite.T().Log("About to run line #304: r.Binary([]byte{97,98,99,100,101,102,103}).Slice(5, 7)") runAndAssert(suite.Suite, expected_, r.Binary([]byte{97, 98, 99, 100, 101, 102, 103}).Slice(5, 7), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #304") } { // datum/binary.yaml line #308 /* b'ab' */ var expected_ []byte = []byte{97, 98} /* r.binary(b'abcdefg').slice(-9, 2) */ suite.T().Log("About to run line #308: r.Binary([]byte{97,98,99,100,101,102,103}).Slice(-9, 2)") runAndAssert(suite.Suite, expected_, r.Binary([]byte{97, 98, 99, 100, 101, 102, 103}).Slice(-9, 2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #308") } { // datum/binary.yaml line #312 /* b'fg' */ var expected_ []byte = []byte{102, 103} /* r.binary(b'abcdefg').slice(5, 9) */ suite.T().Log("About to run line #312: r.Binary([]byte{97,98,99,100,101,102,103}).Slice(5, 9)") runAndAssert(suite.Suite, expected_, r.Binary([]byte{97, 98, 99, 100, 101, 102, 103}).Slice(5, 9), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #312") } { // datum/binary.yaml line #316 /* b */ var expected_ []byte = b /* r.binary(b) */ suite.T().Log("About to run line #316: r.Binary(b)") runAndAssert(suite.Suite, expected_, r.Binary(b), suite.session, r.RunOpts{ BinaryFormat: "native", GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #316") } { // datum/binary.yaml line #320 /* {'$reql_type$':'BINARY','data':'AAE='} */ var expected_ map[interface{}]interface{} = map[interface{}]interface{}{"$reql_type$": "BINARY", "data": "AAE="} /* r.binary(b) */ suite.T().Log("About to run line #320: r.Binary(b)") runAndAssert(suite.Suite, expected_, r.Binary(b), suite.session, r.RunOpts{ BinaryFormat: "raw", GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #320") } { // datum/binary.yaml line #326 /* b"data" */ var expected_ []byte = []byte{100, 97, 116, 97} /* r.binary(r.expr("data")) */ suite.T().Log("About to run line #326: r.Binary(r.Expr('data'))") runAndAssert(suite.Suite, expected_, r.Binary(r.Expr("data")), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #326") } { // datum/binary.yaml line #332 /* err('ReqlQueryLogicError', 'Expected type STRING but found OBJECT.', []) */ var expected_ Err = err("ReqlQueryLogicError", "Expected type STRING but found OBJECT.") /* r.binary(r.expr({})) */ suite.T().Log("About to run line #332: r.Binary(r.Expr(map[interface{}]interface{}{}))") runAndAssert(suite.Suite, expected_, r.Binary(r.Expr(map[interface{}]interface{}{})), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #332") } { // datum/binary.yaml line #335 /* err('ReqlQueryLogicError', 'Expected type STRING but found ARRAY.', []) */ var expected_ Err = err("ReqlQueryLogicError", "Expected type STRING but found ARRAY.") /* r.binary(r.expr([])) */ suite.T().Log("About to run line #335: r.Binary(r.Expr([]interface{}{}))") runAndAssert(suite.Suite, expected_, r.Binary(r.Expr([]interface{}{})), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #335") } { // datum/binary.yaml line #341 /* err('ReqlQueryLogicError','Invalid binary pseudotype:'+' lacking `data` key.',[]) */ var expected_ Err = err("ReqlQueryLogicError", "Invalid binary pseudotype:"+" lacking `data` key.") /* r.expr({'$reql_type$':'BINARY'}) */ suite.T().Log("About to run line #341: r.Expr(map[interface{}]interface{}{'$reql_type$': 'BINARY', })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"$reql_type$": "BINARY"}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #341") } { // datum/binary.yaml line #346 /* err('ReqlQueryLogicError','Invalid base64 format, data found after padding character \'=\'.',[]) */ var expected_ Err = err("ReqlQueryLogicError", "Invalid base64 format, data found after padding character '='.") /* r.expr({'$reql_type$':'BINARY','data':'ABCDEFGH==AA'}) */ suite.T().Log("About to run line #346: r.Expr(map[interface{}]interface{}{'$reql_type$': 'BINARY', 'data': 'ABCDEFGH==AA', })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"$reql_type$": "BINARY", "data": "ABCDEFGH==AA"}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #346") } { // datum/binary.yaml line #348 /* err('ReqlQueryLogicError','Invalid base64 format, data found after padding character \'=\'.',[]) */ var expected_ Err = err("ReqlQueryLogicError", "Invalid base64 format, data found after padding character '='.") /* r.expr({'$reql_type$':'BINARY','data':'ABCDEF==$'}) */ suite.T().Log("About to run line #348: r.Expr(map[interface{}]interface{}{'$reql_type$': 'BINARY', 'data': 'ABCDEF==$', })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"$reql_type$": "BINARY", "data": "ABCDEF==$"}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #348") } { // datum/binary.yaml line #350 /* err('ReqlQueryLogicError','Invalid base64 character found:'+' \'^\'.',[]) */ var expected_ Err = err("ReqlQueryLogicError", "Invalid base64 character found:"+" '^'.") /* r.expr({'$reql_type$':'BINARY','data':'A^CDEFGH'}) */ suite.T().Log("About to run line #350: r.Expr(map[interface{}]interface{}{'$reql_type$': 'BINARY', 'data': 'A^CDEFGH', })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"$reql_type$": "BINARY", "data": "A^CDEFGH"}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #350") } { // datum/binary.yaml line #352 /* err('ReqlQueryLogicError','Invalid base64 length:'+' 1 character remaining, cannot decode a full byte.',[]) */ var expected_ Err = err("ReqlQueryLogicError", "Invalid base64 length:"+" 1 character remaining, cannot decode a full byte.") /* r.expr({'$reql_type$':'BINARY','data':'ABCDE'}) */ suite.T().Log("About to run line #352: r.Expr(map[interface{}]interface{}{'$reql_type$': 'BINARY', 'data': 'ABCDE', })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"$reql_type$": "BINARY", "data": "ABCDE"}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #352") } { // datum/binary.yaml line #356 /* err('ReqlQueryLogicError','Cannot coerce BINARY to ARRAY.',[]) */ var expected_ Err = err("ReqlQueryLogicError", "Cannot coerce BINARY to ARRAY.") /* r.binary(a).coerce_to('array') */ suite.T().Log("About to run line #356: r.Binary(a).CoerceTo('array')") runAndAssert(suite.Suite, expected_, r.Binary(a).CoerceTo("array"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #356") } { // datum/binary.yaml line #358 /* err('ReqlQueryLogicError','Cannot coerce BINARY to OBJECT.',[]) */ var expected_ Err = err("ReqlQueryLogicError", "Cannot coerce BINARY to OBJECT.") /* r.binary(a).coerce_to('object') */ suite.T().Log("About to run line #358: r.Binary(a).CoerceTo('object')") runAndAssert(suite.Suite, expected_, r.Binary(a).CoerceTo("object"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #358") } { // datum/binary.yaml line #360 /* err('ReqlQueryLogicError','Cannot coerce BINARY to NUMBER.',[]) */ var expected_ Err = err("ReqlQueryLogicError", "Cannot coerce BINARY to NUMBER.") /* r.binary(a).coerce_to('number') */ suite.T().Log("About to run line #360: r.Binary(a).CoerceTo('number')") runAndAssert(suite.Suite, expected_, r.Binary(a).CoerceTo("number"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #360") } { // datum/binary.yaml line #362 /* err('ReqlQueryLogicError','Cannot coerce BINARY to NULL.',[]) */ var expected_ Err = err("ReqlQueryLogicError", "Cannot coerce BINARY to NULL.") /* r.binary(a).coerce_to('nu'+'ll') */ suite.T().Log("About to run line #362: r.Binary(a).CoerceTo(r.Add('nu', 'll'))") runAndAssert(suite.Suite, expected_, r.Binary(a).CoerceTo(r.Add("nu", "ll")), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #362") } }
func (suite *JsonSuite) TestCases() { suite.T().Log("Running JsonSuite: Tests RQL json parsing") { // json.yaml line #4 /* [1,2,3] */ var expected_ []interface{} = []interface{}{1, 2, 3} /* r.json("[1,2,3]") */ suite.T().Log("About to run line #4: r.JSON('[1,2,3]')") runAndAssert(suite.Suite, expected_, r.JSON("[1,2,3]"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #4") } { // json.yaml line #7 /* 1 */ var expected_ int = 1 /* r.json("1") */ suite.T().Log("About to run line #7: r.JSON('1')") runAndAssert(suite.Suite, expected_, r.JSON("1"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #7") } { // json.yaml line #10 /* {} */ var expected_ map[interface{}]interface{} = map[interface{}]interface{}{} /* r.json("{}") */ suite.T().Log("About to run line #10: r.JSON('{}')") runAndAssert(suite.Suite, expected_, r.JSON("{}"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #10") } { // json.yaml line #13 /* "foo" */ var expected_ string = "foo" /* r.json('"foo"') */ suite.T().Log("About to run line #13: r.JSON('\\'foo\\'')") runAndAssert(suite.Suite, expected_, r.JSON("\"foo\""), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #13") } { // json.yaml line #16 /* err("ReqlQueryLogicError", 'Failed to parse "[1,2" as JSON:' + ' Missing a comma or \']\' after an array element.', [0]) */ var expected_ Err = err("ReqlQueryLogicError", "Failed to parse \"[1,2\" as JSON:"+" Missing a comma or ']' after an array element.") /* r.json("[1,2") */ suite.T().Log("About to run line #16: r.JSON('[1,2')") runAndAssert(suite.Suite, expected_, r.JSON("[1,2"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #16") } { // json.yaml line #19 /* '[1,2,3]' */ var expected_ string = "[1,2,3]" /* r.json("[1,2,3]").to_json_string() */ suite.T().Log("About to run line #19: r.JSON('[1,2,3]').ToJSON()") runAndAssert(suite.Suite, expected_, r.JSON("[1,2,3]").ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #19") } { // json.yaml line #23 /* '[1,2,3]' */ var expected_ string = "[1,2,3]" /* r.json("[1,2,3]").to_json() */ suite.T().Log("About to run line #23: r.JSON('[1,2,3]').ToJSON()") runAndAssert(suite.Suite, expected_, r.JSON("[1,2,3]").ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #23") } { // json.yaml line #26 /* '{"foo":4}' */ var expected_ string = "{\"foo\":4}" /* r.json("{\"foo\":4}").to_json_string() */ suite.T().Log("About to run line #26: r.JSON('{\\'foo\\':4}').ToJSON()") runAndAssert(suite.Suite, expected_, r.JSON("{\"foo\":4}").ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #26") } { // json.yaml line #30 /* '{"foo":4}' */ var expected_ string = "{\"foo\":4}" /* r.json("{\"foo\":4}").to_json() */ suite.T().Log("About to run line #30: r.JSON('{\\'foo\\':4}').ToJSON()") runAndAssert(suite.Suite, expected_, r.JSON("{\"foo\":4}").ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #30") } // json.yaml line #34 // text = '[{"id":1,"first_name":"Harry","last_name":"Riley","email":"*****@*****.**","country":"Andorra","ip_address":"221.25.65.136"},{"id":2,"first_name":"Bonnie","last_name":"Anderson","email":"*****@*****.**","country":"Tuvalu","ip_address":"116.162.43.150"},{"id":3,"first_name":"Marie","last_name":"Schmidt","email":"*****@*****.**","country":"Iraq","ip_address":"181.105.59.57"},{"id":4,"first_name":"Phillip","last_name":"Willis","email":"*****@*****.**","country":"Montenegro","ip_address":"24.223.139.156"}]' suite.T().Log("Possibly executing: var text string = '[{\\'id\\':1,\\'first_name\\':\\'Harry\\',\\'last_name\\':\\'Riley\\',\\'email\\':\\'[email protected]\\',\\'country\\':\\'Andorra\\',\\'ip_address\\':\\'221.25.65.136\\'},{\\'id\\':2,\\'first_name\\':\\'Bonnie\\',\\'last_name\\':\\'Anderson\\',\\'email\\':\\'[email protected]\\',\\'country\\':\\'Tuvalu\\',\\'ip_address\\':\\'116.162.43.150\\'},{\\'id\\':3,\\'first_name\\':\\'Marie\\',\\'last_name\\':\\'Schmidt\\',\\'email\\':\\'[email protected]\\',\\'country\\':\\'Iraq\\',\\'ip_address\\':\\'181.105.59.57\\'},{\\'id\\':4,\\'first_name\\':\\'Phillip\\',\\'last_name\\':\\'Willis\\',\\'email\\':\\'[email protected]\\',\\'country\\':\\'Montenegro\\',\\'ip_address\\':\\'24.223.139.156\\'}]'") text := "[{\"id\":1,\"first_name\":\"Harry\",\"last_name\":\"Riley\",\"email\":\"[email protected]\",\"country\":\"Andorra\",\"ip_address\":\"221.25.65.136\"},{\"id\":2,\"first_name\":\"Bonnie\",\"last_name\":\"Anderson\",\"email\":\"[email protected]\",\"country\":\"Tuvalu\",\"ip_address\":\"116.162.43.150\"},{\"id\":3,\"first_name\":\"Marie\",\"last_name\":\"Schmidt\",\"email\":\"[email protected]\",\"country\":\"Iraq\",\"ip_address\":\"181.105.59.57\"},{\"id\":4,\"first_name\":\"Phillip\",\"last_name\":\"Willis\",\"email\":\"[email protected]\",\"country\":\"Montenegro\",\"ip_address\":\"24.223.139.156\"}]" _ = text // Prevent any noused variable errors // json.yaml line #35 // sorted = '[{"country":"Andorra","email":"*****@*****.**","first_name":"Harry","id":1,"ip_address":"221.25.65.136","last_name":"Riley"},{"country":"Tuvalu","email":"*****@*****.**","first_name":"Bonnie","id":2,"ip_address":"116.162.43.150","last_name":"Anderson"},{"country":"Iraq","email":"*****@*****.**","first_name":"Marie","id":3,"ip_address":"181.105.59.57","last_name":"Schmidt"},{"country":"Montenegro","email":"*****@*****.**","first_name":"Phillip","id":4,"ip_address":"24.223.139.156","last_name":"Willis"}]' suite.T().Log("Possibly executing: var sorted string = '[{\\'country\\':\\'Andorra\\',\\'email\\':\\'[email protected]\\',\\'first_name\\':\\'Harry\\',\\'id\\':1,\\'ip_address\\':\\'221.25.65.136\\',\\'last_name\\':\\'Riley\\'},{\\'country\\':\\'Tuvalu\\',\\'email\\':\\'[email protected]\\',\\'first_name\\':\\'Bonnie\\',\\'id\\':2,\\'ip_address\\':\\'116.162.43.150\\',\\'last_name\\':\\'Anderson\\'},{\\'country\\':\\'Iraq\\',\\'email\\':\\'[email protected]\\',\\'first_name\\':\\'Marie\\',\\'id\\':3,\\'ip_address\\':\\'181.105.59.57\\',\\'last_name\\':\\'Schmidt\\'},{\\'country\\':\\'Montenegro\\',\\'email\\':\\'[email protected]\\',\\'first_name\\':\\'Phillip\\',\\'id\\':4,\\'ip_address\\':\\'24.223.139.156\\',\\'last_name\\':\\'Willis\\'}]'") sorted := "[{\"country\":\"Andorra\",\"email\":\"[email protected]\",\"first_name\":\"Harry\",\"id\":1,\"ip_address\":\"221.25.65.136\",\"last_name\":\"Riley\"},{\"country\":\"Tuvalu\",\"email\":\"[email protected]\",\"first_name\":\"Bonnie\",\"id\":2,\"ip_address\":\"116.162.43.150\",\"last_name\":\"Anderson\"},{\"country\":\"Iraq\",\"email\":\"[email protected]\",\"first_name\":\"Marie\",\"id\":3,\"ip_address\":\"181.105.59.57\",\"last_name\":\"Schmidt\"},{\"country\":\"Montenegro\",\"email\":\"[email protected]\",\"first_name\":\"Phillip\",\"id\":4,\"ip_address\":\"24.223.139.156\",\"last_name\":\"Willis\"}]" _ = sorted // Prevent any noused variable errors { // json.yaml line #37 /* sorted */ var expected_ string = sorted /* r.json(text).to_json_string() */ suite.T().Log("About to run line #37: r.JSON(text).ToJSON()") runAndAssert(suite.Suite, expected_, r.JSON(text).ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #37") } { // json.yaml line #40 /* err('ReqlQueryLogicError', 'Cannot convert `r.minval` to JSON.') */ var expected_ Err = err("ReqlQueryLogicError", "Cannot convert `r.minval` to JSON.") /* r.expr(r.minval).to_json_string() */ suite.T().Log("About to run line #40: r.Expr(r.MinVal).ToJSON()") runAndAssert(suite.Suite, expected_, r.Expr(r.MinVal).ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #40") } { // json.yaml line #43 /* err('ReqlQueryLogicError', 'Cannot convert `r.maxval` to JSON.') */ var expected_ Err = err("ReqlQueryLogicError", "Cannot convert `r.maxval` to JSON.") /* r.expr(r.maxval).to_json_string() */ suite.T().Log("About to run line #43: r.Expr(r.MaxVal).ToJSON()") runAndAssert(suite.Suite, expected_, r.Expr(r.MaxVal).ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #43") } { // json.yaml line #46 /* err('ReqlQueryLogicError', 'Cannot convert `r.minval` to JSON.') */ var expected_ Err = err("ReqlQueryLogicError", "Cannot convert `r.minval` to JSON.") /* r.expr(r.minval).coerce_to('string') */ suite.T().Log("About to run line #46: r.Expr(r.MinVal).CoerceTo('string')") runAndAssert(suite.Suite, expected_, r.Expr(r.MinVal).CoerceTo("string"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #46") } { // json.yaml line #49 /* err('ReqlQueryLogicError', 'Cannot convert `r.maxval` to JSON.') */ var expected_ Err = err("ReqlQueryLogicError", "Cannot convert `r.maxval` to JSON.") /* r.expr(r.maxval).coerce_to('string') */ suite.T().Log("About to run line #49: r.Expr(r.MaxVal).CoerceTo('string')") runAndAssert(suite.Suite, expected_, r.Expr(r.MaxVal).CoerceTo("string"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #49") } { // json.yaml line #52 /* {'timezone':'+00:00','$reql_type$':'TIME','epoch_time':1410393600} */ var expected_ map[interface{}]interface{} = map[interface{}]interface{}{"timezone": "+00:00", "$reql_type$": "TIME", "epoch_time": 1410393600} /* r.time(2014,9,11, 'Z') */ suite.T().Log("About to run line #52: r.Time(2014, 9, 11, 'Z')") runAndAssert(suite.Suite, expected_, r.Time(2014, 9, 11, "Z"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", TimeFormat: "raw", }) suite.T().Log("Finished running line #52") } { // json.yaml line #57 /* '{"$reql_type$":"TIME","epoch_time":1410393600,"timezone":"+00:00"}' */ var expected_ string = "{\"$reql_type$\":\"TIME\",\"epoch_time\":1410393600,\"timezone\":\"+00:00\"}" /* r.time(2014,9,11, 'Z').to_json_string() */ suite.T().Log("About to run line #57: r.Time(2014, 9, 11, 'Z').ToJSON()") runAndAssert(suite.Suite, expected_, r.Time(2014, 9, 11, "Z").ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #57") } { // json.yaml line #60 /* {'$reql_type$':'GEOMETRY','coordinates':[0,0],'type':'Point'} */ var expected_ map[interface{}]interface{} = map[interface{}]interface{}{"$reql_type$": "GEOMETRY", "coordinates": []interface{}{0, 0}, "type": "Point"} /* r.point(0,0) */ suite.T().Log("About to run line #60: r.Point(0, 0)") runAndAssert(suite.Suite, expected_, r.Point(0, 0), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #60") } { // json.yaml line #63 /* '{"$reql_type$":"GEOMETRY","coordinates":[0,0],"type":"Point"}' */ var expected_ string = "{\"$reql_type$\":\"GEOMETRY\",\"coordinates\":[0,0],\"type\":\"Point\"}" /* r.point(0,0).to_json_string() */ suite.T().Log("About to run line #63: r.Point(0, 0).ToJSON()") runAndAssert(suite.Suite, expected_, r.Point(0, 0).ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #63") } // json.yaml line #68 // s = b'\x66\x6f\x6f' suite.T().Log("Possibly executing: var s []byte = []byte{102,111,111}") s := []byte{102, 111, 111} _ = s // Prevent any noused variable errors { // json.yaml line #70 /* s */ var expected_ []byte = s /* r.binary(s) */ suite.T().Log("About to run line #70: r.Binary(s)") runAndAssert(suite.Suite, expected_, r.Binary(s), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #70") } { // json.yaml line #73 /* '{"$reql_type$":"BINARY","data":"Zm9v"}' */ var expected_ string = "{\"$reql_type$\":\"BINARY\",\"data\":\"Zm9v\"}" /* r.expr("foo").coerce_to("binary").to_json_string() */ suite.T().Log("About to run line #73: r.Expr('foo').CoerceTo('binary').ToJSON()") runAndAssert(suite.Suite, expected_, r.Expr("foo").CoerceTo("binary").ToJSON(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #73") } }
func (suite *MathLogicComparisonSuite) TestCases() { suite.T().Log("Running MathLogicComparisonSuite: Tests of comparison operators") { // math_logic/comparison.yaml line #10 /* true */ var expected_ bool = true /* r.expr(1) < 2 */ suite.T().Log("About to run line #10: r.Expr(1).Lt(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Lt(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #10") } { // math_logic/comparison.yaml line #11 /* true */ var expected_ bool = true /* 1 < r.expr(2) */ suite.T().Log("About to run line #11: r.Lt(1, r.Expr(2))") runAndAssert(suite.Suite, expected_, r.Lt(1, r.Expr(2)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #11") } { // math_logic/comparison.yaml line #12 /* true */ var expected_ bool = true /* r.expr(1).lt(2) */ suite.T().Log("About to run line #12: r.Expr(1).Lt(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Lt(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #12") } { // math_logic/comparison.yaml line #19 /* false */ var expected_ bool = false /* r.expr(3) < 2 */ suite.T().Log("About to run line #19: r.Expr(3).Lt(2)") runAndAssert(suite.Suite, expected_, r.Expr(3).Lt(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #19") } { // math_logic/comparison.yaml line #22 /* false */ var expected_ bool = false /* r.expr(2) < 2 */ suite.T().Log("About to run line #22: r.Expr(2).Lt(2)") runAndAssert(suite.Suite, expected_, r.Expr(2).Lt(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #22") } { // math_logic/comparison.yaml line #38 /* false */ var expected_ bool = false /* r.expr(1) > 2 */ suite.T().Log("About to run line #38: r.Expr(1).Gt(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Gt(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #38") } { // math_logic/comparison.yaml line #39 /* false */ var expected_ bool = false /* 1 > r.expr(2) */ suite.T().Log("About to run line #39: r.Gt(1, r.Expr(2))") runAndAssert(suite.Suite, expected_, r.Gt(1, r.Expr(2)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #39") } { // math_logic/comparison.yaml line #40 /* false */ var expected_ bool = false /* r.expr(1).gt(2) */ suite.T().Log("About to run line #40: r.Expr(1).Gt(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Gt(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #40") } { // math_logic/comparison.yaml line #45 /* true */ var expected_ bool = true /* r.expr(3) > 2 */ suite.T().Log("About to run line #45: r.Expr(3).Gt(2)") runAndAssert(suite.Suite, expected_, r.Expr(3).Gt(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #45") } { // math_logic/comparison.yaml line #49 /* false */ var expected_ bool = false /* r.expr(2) > 2 */ suite.T().Log("About to run line #49: r.Expr(2).Gt(2)") runAndAssert(suite.Suite, expected_, r.Expr(2).Gt(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #49") } { // math_logic/comparison.yaml line #63 /* false */ var expected_ bool = false /* r.expr(1) == 2 */ suite.T().Log("About to run line #63: r.Expr(1).Eq(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Eq(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #63") } { // math_logic/comparison.yaml line #64 /* false */ var expected_ bool = false /* 1 == r.expr(2) */ suite.T().Log("About to run line #64: r.Eq(1, r.Expr(2))") runAndAssert(suite.Suite, expected_, r.Eq(1, r.Expr(2)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #64") } { // math_logic/comparison.yaml line #65 /* false */ var expected_ bool = false /* r.expr(1).eq(2) */ suite.T().Log("About to run line #65: r.Expr(1).Eq(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Eq(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #65") } { // math_logic/comparison.yaml line #68 /* false */ var expected_ bool = false /* r.expr(3) == 2 */ suite.T().Log("About to run line #68: r.Expr(3).Eq(2)") runAndAssert(suite.Suite, expected_, r.Expr(3).Eq(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #68") } { // math_logic/comparison.yaml line #72 /* true */ var expected_ bool = true /* r.expr(2) == 2 */ suite.T().Log("About to run line #72: r.Expr(2).Eq(2)") runAndAssert(suite.Suite, expected_, r.Expr(2).Eq(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #72") } { // math_logic/comparison.yaml line #86 /* true */ var expected_ bool = true /* r.expr(1) != 2 */ suite.T().Log("About to run line #86: r.Expr(1).Ne(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Ne(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #86") } { // math_logic/comparison.yaml line #87 /* true */ var expected_ bool = true /* 1 != r.expr(2) */ suite.T().Log("About to run line #87: r.Ne(1, r.Expr(2))") runAndAssert(suite.Suite, expected_, r.Ne(1, r.Expr(2)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #87") } { // math_logic/comparison.yaml line #88 /* true */ var expected_ bool = true /* r.expr(1).ne(2) */ suite.T().Log("About to run line #88: r.Expr(1).Ne(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Ne(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #88") } { // math_logic/comparison.yaml line #91 /* true */ var expected_ bool = true /* r.expr(3) != 2 */ suite.T().Log("About to run line #91: r.Expr(3).Ne(2)") runAndAssert(suite.Suite, expected_, r.Expr(3).Ne(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #91") } { // math_logic/comparison.yaml line #95 /* false */ var expected_ bool = false /* r.expr(2) != 2 */ suite.T().Log("About to run line #95: r.Expr(2).Ne(2)") runAndAssert(suite.Suite, expected_, r.Expr(2).Ne(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #95") } { // math_logic/comparison.yaml line #109 /* true */ var expected_ bool = true /* r.expr(1) <= 2 */ suite.T().Log("About to run line #109: r.Expr(1).Le(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Le(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #109") } { // math_logic/comparison.yaml line #110 /* true */ var expected_ bool = true /* 1 <= r.expr(2) */ suite.T().Log("About to run line #110: r.Le(1, r.Expr(2))") runAndAssert(suite.Suite, expected_, r.Le(1, r.Expr(2)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #110") } { // math_logic/comparison.yaml line #111 /* true */ var expected_ bool = true /* r.expr(1).le(2) */ suite.T().Log("About to run line #111: r.Expr(1).Le(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Le(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #111") } { // math_logic/comparison.yaml line #116 /* false */ var expected_ bool = false /* r.expr(3) <= 2 */ suite.T().Log("About to run line #116: r.Expr(3).Le(2)") runAndAssert(suite.Suite, expected_, r.Expr(3).Le(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #116") } { // math_logic/comparison.yaml line #120 /* true */ var expected_ bool = true /* r.expr(2) <= 2 */ suite.T().Log("About to run line #120: r.Expr(2).Le(2)") runAndAssert(suite.Suite, expected_, r.Expr(2).Le(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #120") } { // math_logic/comparison.yaml line #134 /* false */ var expected_ bool = false /* r.expr(1) >= 2 */ suite.T().Log("About to run line #134: r.Expr(1).Ge(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Ge(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #134") } { // math_logic/comparison.yaml line #135 /* false */ var expected_ bool = false /* 1 >= r.expr(2) */ suite.T().Log("About to run line #135: r.Ge(1, r.Expr(2))") runAndAssert(suite.Suite, expected_, r.Ge(1, r.Expr(2)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #135") } { // math_logic/comparison.yaml line #136 /* false */ var expected_ bool = false /* r.expr(1).ge(2) */ suite.T().Log("About to run line #136: r.Expr(1).Ge(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Ge(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #136") } { // math_logic/comparison.yaml line #141 /* true */ var expected_ bool = true /* r.expr(3) >= 2 */ suite.T().Log("About to run line #141: r.Expr(3).Ge(2)") runAndAssert(suite.Suite, expected_, r.Expr(3).Ge(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #141") } { // math_logic/comparison.yaml line #145 /* true */ var expected_ bool = true /* r.expr(2) >= 2 */ suite.T().Log("About to run line #145: r.Expr(2).Ge(2)") runAndAssert(suite.Suite, expected_, r.Expr(2).Ge(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #145") } { // math_logic/comparison.yaml line #158 /* true */ var expected_ bool = true /* r.expr(null) == null */ suite.T().Log("About to run line #158: r.Expr(nil).Eq(nil)") runAndAssert(suite.Suite, expected_, r.Expr(nil).Eq(nil), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #158") } { // math_logic/comparison.yaml line #159 /* true */ var expected_ bool = true /* null == r.expr(null) */ suite.T().Log("About to run line #159: r.Eq(nil, r.Expr(nil))") runAndAssert(suite.Suite, expected_, r.Eq(nil, r.Expr(nil)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #159") } { // math_logic/comparison.yaml line #164 /* false */ var expected_ bool = false /* r.expr(null) < null */ suite.T().Log("About to run line #164: r.Expr(nil).Lt(nil)") runAndAssert(suite.Suite, expected_, r.Expr(nil).Lt(nil), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #164") } { // math_logic/comparison.yaml line #165 /* false */ var expected_ bool = false /* null < r.expr(null) */ suite.T().Log("About to run line #165: r.Lt(nil, r.Expr(nil))") runAndAssert(suite.Suite, expected_, r.Lt(nil, r.Expr(nil)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #165") } { // math_logic/comparison.yaml line #166 /* false */ var expected_ bool = false /* r.expr(null).lt(null) */ suite.T().Log("About to run line #166: r.Expr(nil).Lt(nil)") runAndAssert(suite.Suite, expected_, r.Expr(nil).Lt(nil), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #166") } { // math_logic/comparison.yaml line #172 /* false */ var expected_ bool = false /* r.expr(null) > null */ suite.T().Log("About to run line #172: r.Expr(nil).Gt(nil)") runAndAssert(suite.Suite, expected_, r.Expr(nil).Gt(nil), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #172") } { // math_logic/comparison.yaml line #173 /* false */ var expected_ bool = false /* null > r.expr(null) */ suite.T().Log("About to run line #173: r.Gt(nil, r.Expr(nil))") runAndAssert(suite.Suite, expected_, r.Gt(nil, r.Expr(nil)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #173") } { // math_logic/comparison.yaml line #174 /* false */ var expected_ bool = false /* r.expr(null).gt(null) */ suite.T().Log("About to run line #174: r.Expr(nil).Gt(nil)") runAndAssert(suite.Suite, expected_, r.Expr(nil).Gt(nil), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #174") } { // math_logic/comparison.yaml line #180 /* true */ var expected_ bool = true /* r.expr('a') == 'a' */ suite.T().Log("About to run line #180: r.Expr('a').Eq('a')") runAndAssert(suite.Suite, expected_, r.Expr("a").Eq("a"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #180") } { // math_logic/comparison.yaml line #184 /* false */ var expected_ bool = false /* r.expr('a') == 'aa' */ suite.T().Log("About to run line #184: r.Expr('a').Eq('aa')") runAndAssert(suite.Suite, expected_, r.Expr("a").Eq("aa"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #184") } { // math_logic/comparison.yaml line #188 /* true */ var expected_ bool = true /* r.expr('a') < 'aa' */ suite.T().Log("About to run line #188: r.Expr('a').Lt('aa')") runAndAssert(suite.Suite, expected_, r.Expr("a").Lt("aa"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #188") } { // math_logic/comparison.yaml line #192 /* true */ var expected_ bool = true /* r.expr('a') < 'bb' */ suite.T().Log("About to run line #192: r.Expr('a').Lt('bb')") runAndAssert(suite.Suite, expected_, r.Expr("a").Lt("bb"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #192") } { // math_logic/comparison.yaml line #196 /* true */ var expected_ bool = true /* r.expr('bb') > 'a' */ suite.T().Log("About to run line #196: r.Expr('bb').Gt('a')") runAndAssert(suite.Suite, expected_, r.Expr("bb").Gt("a"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #196") } { // math_logic/comparison.yaml line #200 /* true */ var expected_ bool = true /* r.expr('abcdef') < 'abcdeg' */ suite.T().Log("About to run line #200: r.Expr('abcdef').Lt('abcdeg')") runAndAssert(suite.Suite, expected_, r.Expr("abcdef").Lt("abcdeg"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #200") } { // math_logic/comparison.yaml line #204 /* false */ var expected_ bool = false /* r.expr('abcdefg') > 'abcdeg' */ suite.T().Log("About to run line #204: r.Expr('abcdefg').Gt('abcdeg')") runAndAssert(suite.Suite, expected_, r.Expr("abcdefg").Gt("abcdeg"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #204") } { // math_logic/comparison.yaml line #208 /* true */ var expected_ bool = true /* r.expr('A quick brown fox') > 'A quick brawn fox' */ suite.T().Log("About to run line #208: r.Expr('A quick brown fox').Gt('A quick brawn fox')") runAndAssert(suite.Suite, expected_, r.Expr("A quick brown fox").Gt("A quick brawn fox"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #208") } { // math_logic/comparison.yaml line #216 /* true */ var expected_ bool = true /* r.expr([1]) < [2] */ suite.T().Log("About to run line #216: r.Expr([]interface{}{1}).Lt([]interface{}{2})") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1}).Lt([]interface{}{2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #216") } { // math_logic/comparison.yaml line #221 /* false */ var expected_ bool = false /* r.expr([1]) > [2] */ suite.T().Log("About to run line #221: r.Expr([]interface{}{1}).Gt([]interface{}{2})") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1}).Gt([]interface{}{2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #221") } { // math_logic/comparison.yaml line #226 /* true */ var expected_ bool = true /* r.expr([1, 0]) < [2] */ suite.T().Log("About to run line #226: r.Expr([]interface{}{1, 0}).Lt([]interface{}{2})") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 0}).Lt([]interface{}{2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #226") } { // math_logic/comparison.yaml line #231 /* false */ var expected_ bool = false /* r.expr([1, 0]) < [1] */ suite.T().Log("About to run line #231: r.Expr([]interface{}{1, 0}).Lt([]interface{}{1})") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 0}).Lt([]interface{}{1}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #231") } { // math_logic/comparison.yaml line #236 /* true */ var expected_ bool = true /* r.expr([1, 0]) > [0] */ suite.T().Log("About to run line #236: r.Expr([]interface{}{1, 0}).Gt([]interface{}{0})") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 0}).Gt([]interface{}{0}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #236") } { // math_logic/comparison.yaml line #241 /* true */ var expected_ bool = true /* r.expr([1, 'a']) < [1, 'b'] */ suite.T().Log("About to run line #241: r.Expr([]interface{}{1, 'a'}).Lt([]interface{}{1, 'b'})") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, "a"}).Lt([]interface{}{1, "b"}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #241") } { // math_logic/comparison.yaml line #246 /* true */ var expected_ bool = true /* r.expr([0, 'z']) < [1, 'b'] */ suite.T().Log("About to run line #246: r.Expr([]interface{}{0, 'z'}).Lt([]interface{}{1, 'b'})") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{0, "z"}).Lt([]interface{}{1, "b"}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #246") } { // math_logic/comparison.yaml line #251 /* false */ var expected_ bool = false /* r.expr([1, 1, 1]) < [1, 0, 2] */ suite.T().Log("About to run line #251: r.Expr([]interface{}{1, 1, 1}).Lt([]interface{}{1, 0, 2})") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 1, 1}).Lt([]interface{}{1, 0, 2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #251") } { // math_logic/comparison.yaml line #256 /* true */ var expected_ bool = true /* r.expr([1, 0, 2]) < [1, 1, 1] */ suite.T().Log("About to run line #256: r.Expr([]interface{}{1, 0, 2}).Lt([]interface{}{1, 1, 1})") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 0, 2}).Lt([]interface{}{1, 1, 1}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #256") } { // math_logic/comparison.yaml line #263 /* true */ var expected_ bool = true /* r.expr({'a':0}) == {'a':0} */ suite.T().Log("About to run line #263: r.Expr(map[interface{}]interface{}{'a': 0, }).Eq(map[interface{}]interface{}{'a': 0, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0}).Eq(map[interface{}]interface{}{"a": 0}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #263") } { // math_logic/comparison.yaml line #267 /* true */ var expected_ bool = true /* r.expr({'a':0, 'b':1}) == {'b':1, 'a':0} */ suite.T().Log("About to run line #267: r.Expr(map[interface{}]interface{}{'a': 0, 'b': 1, }).Eq(map[interface{}]interface{}{'b': 1, 'a': 0, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0, "b": 1}).Eq(map[interface{}]interface{}{"b": 1, "a": 0}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #267") } { // math_logic/comparison.yaml line #271 /* false */ var expected_ bool = false /* r.expr({'a':0, 'b':1, 'c':2}) == {'b':1, 'a':0} */ suite.T().Log("About to run line #271: r.Expr(map[interface{}]interface{}{'a': 0, 'b': 1, 'c': 2, }).Eq(map[interface{}]interface{}{'b': 1, 'a': 0, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0, "b": 1, "c": 2}).Eq(map[interface{}]interface{}{"b": 1, "a": 0}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #271") } { // math_logic/comparison.yaml line #275 /* false */ var expected_ bool = false /* r.expr({'a':0, 'b':1}) == {'b':1, 'a':0, 'c':2} */ suite.T().Log("About to run line #275: r.Expr(map[interface{}]interface{}{'a': 0, 'b': 1, }).Eq(map[interface{}]interface{}{'b': 1, 'a': 0, 'c': 2, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0, "b": 1}).Eq(map[interface{}]interface{}{"b": 1, "a": 0, "c": 2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #275") } { // math_logic/comparison.yaml line #279 /* false */ var expected_ bool = false /* r.expr({'a':0, 'b':1, 'd':2}) == {'b':1, 'a':0, 'c':2} */ suite.T().Log("About to run line #279: r.Expr(map[interface{}]interface{}{'a': 0, 'b': 1, 'd': 2, }).Eq(map[interface{}]interface{}{'b': 1, 'a': 0, 'c': 2, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0, "b": 1, "d": 2}).Eq(map[interface{}]interface{}{"b": 1, "a": 0, "c": 2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #279") } { // math_logic/comparison.yaml line #283 /* true */ var expected_ bool = true /* r.expr({'a':0}) < {'b':0} */ suite.T().Log("About to run line #283: r.Expr(map[interface{}]interface{}{'a': 0, }).Lt(map[interface{}]interface{}{'b': 0, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0}).Lt(map[interface{}]interface{}{"b": 0}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #283") } { // math_logic/comparison.yaml line #287 /* true */ var expected_ bool = true /* r.expr({'a':1}) < {'b':0} */ suite.T().Log("About to run line #287: r.Expr(map[interface{}]interface{}{'a': 1, }).Lt(map[interface{}]interface{}{'b': 0, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 1}).Lt(map[interface{}]interface{}{"b": 0}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #287") } { // math_logic/comparison.yaml line #291 /* false */ var expected_ bool = false /* r.expr({'b':1}) < {'b':0} */ suite.T().Log("About to run line #291: r.Expr(map[interface{}]interface{}{'b': 1, }).Lt(map[interface{}]interface{}{'b': 0, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"b": 1}).Lt(map[interface{}]interface{}{"b": 0}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #291") } { // math_logic/comparison.yaml line #295 /* false */ var expected_ bool = false /* r.expr({'b':1}) < {'a':0} */ suite.T().Log("About to run line #295: r.Expr(map[interface{}]interface{}{'b': 1, }).Lt(map[interface{}]interface{}{'a': 0, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"b": 1}).Lt(map[interface{}]interface{}{"a": 0}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #295") } { // math_logic/comparison.yaml line #299 /* false */ var expected_ bool = false /* r.expr({'a':0, 'b':1, 'c':2}) < {'a':0, 'b':1, 'c':2} */ suite.T().Log("About to run line #299: r.Expr(map[interface{}]interface{}{'a': 0, 'b': 1, 'c': 2, }).Lt(map[interface{}]interface{}{'a': 0, 'b': 1, 'c': 2, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0, "b": 1, "c": 2}).Lt(map[interface{}]interface{}{"a": 0, "b": 1, "c": 2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #299") } { // math_logic/comparison.yaml line #303 /* false */ var expected_ bool = false /* r.expr({'a':0, 'b':1, 'c':2, 'd':3}) < {'a':0, 'b':1, 'c':2} */ suite.T().Log("About to run line #303: r.Expr(map[interface{}]interface{}{'a': 0, 'b': 1, 'c': 2, 'd': 3, }).Lt(map[interface{}]interface{}{'a': 0, 'b': 1, 'c': 2, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0, "b": 1, "c": 2, "d": 3}).Lt(map[interface{}]interface{}{"a": 0, "b": 1, "c": 2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #303") } { // math_logic/comparison.yaml line #307 /* true */ var expected_ bool = true /* r.expr({'a':0, 'b':1, 'c':2}) < {'a':0, 'b':1, 'c':2, 'd':3} */ suite.T().Log("About to run line #307: r.Expr(map[interface{}]interface{}{'a': 0, 'b': 1, 'c': 2, }).Lt(map[interface{}]interface{}{'a': 0, 'b': 1, 'c': 2, 'd': 3, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0, "b": 1, "c": 2}).Lt(map[interface{}]interface{}{"a": 0, "b": 1, "c": 2, "d": 3}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #307") } { // math_logic/comparison.yaml line #311 /* false */ var expected_ bool = false /* r.expr({'a':0, 'c':2}) < {'a':0, 'b':1, 'c':2} */ suite.T().Log("About to run line #311: r.Expr(map[interface{}]interface{}{'a': 0, 'c': 2, }).Lt(map[interface{}]interface{}{'a': 0, 'b': 1, 'c': 2, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0, "c": 2}).Lt(map[interface{}]interface{}{"a": 0, "b": 1, "c": 2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #311") } { // math_logic/comparison.yaml line #315 /* true */ var expected_ bool = true /* r.expr({'a':0, 'c':2}) > {'a':0, 'b':1, 'c':2} */ suite.T().Log("About to run line #315: r.Expr(map[interface{}]interface{}{'a': 0, 'c': 2, }).Gt(map[interface{}]interface{}{'a': 0, 'b': 1, 'c': 2, })") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{"a": 0, "c": 2}).Gt(map[interface{}]interface{}{"a": 0, "b": 1, "c": 2}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #315") } // math_logic/comparison.yaml line #331 // everything = r.expr([[],r.now(),r.binary(b"\x00"),false,null,-5,{},"a",r.maxval]) suite.T().Log("Possibly executing: var everything r.Term = r.Expr([]interface{}{[]interface{}{}, r.Now(), r.Binary([]byte{0}), false, nil, -5, map[interface{}]interface{}{}, 'a', r.MaxVal})") everything := r.Expr([]interface{}{[]interface{}{}, r.Now(), r.Binary([]byte{0}), false, nil, -5, map[interface{}]interface{}{}, "a", r.MaxVal}) _ = everything // Prevent any noused variable errors { // math_logic/comparison.yaml line #336 /* true */ var expected_ bool = true /* r.and_(r.args(everything.map(r.lt(r.minval, r.row)))) */ suite.T().Log("About to run line #336: r.And(r.Args(everything.Map(r.Lt(r.MinVal, r.Row))))") runAndAssert(suite.Suite, expected_, r.And(r.Args(everything.Map(r.Lt(r.MinVal, r.Row)))), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #336") } { // math_logic/comparison.yaml line #341 /* false */ var expected_ bool = false /* r.or_(r.args(everything.map(r.gt(r.minval, r.row)))) */ suite.T().Log("About to run line #341: r.Or(r.Args(everything.Map(r.Gt(r.MinVal, r.Row))))") runAndAssert(suite.Suite, expected_, r.Or(r.Args(everything.Map(r.Gt(r.MinVal, r.Row)))), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #341") } { // math_logic/comparison.yaml line #345 /* true */ var expected_ bool = true /* r.eq(r.minval, r.minval) */ suite.T().Log("About to run line #345: r.Eq(r.MinVal, r.MinVal)") runAndAssert(suite.Suite, expected_, r.Eq(r.MinVal, r.MinVal), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #345") } { // math_logic/comparison.yaml line #348 /* true */ var expected_ bool = true /* r.expr([]) < True */ suite.T().Log("About to run line #348: r.Expr([]interface{}{}).Lt(true)") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{}).Lt(true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #348") } { // math_logic/comparison.yaml line #353 /* true */ var expected_ bool = true /* r.expr([1,2]) < False */ suite.T().Log("About to run line #353: r.Expr([]interface{}{1, 2}).Lt(false)") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 2}).Lt(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #353") } { // math_logic/comparison.yaml line #358 /* false */ var expected_ bool = false /* r.expr(False) < [] */ suite.T().Log("About to run line #358: r.Expr(false).Lt([]interface{}{})") runAndAssert(suite.Suite, expected_, r.Expr(false).Lt([]interface{}{}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #358") } { // math_logic/comparison.yaml line #363 /* true */ var expected_ bool = true /* r.expr([]) < r.binary(b"\xAE") */ suite.T().Log("About to run line #363: r.Expr([]interface{}{}).Lt(r.Binary([]byte{174}))") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{}).Lt(r.Binary([]byte{174})), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #363") } { // math_logic/comparison.yaml line #368 /* true */ var expected_ bool = true /* r.expr([1,2]) < r.binary(b"\xAE") */ suite.T().Log("About to run line #368: r.Expr([]interface{}{1, 2}).Lt(r.Binary([]byte{174}))") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 2}).Lt(r.Binary([]byte{174})), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #368") } { // math_logic/comparison.yaml line #373 /* true */ var expected_ bool = true /* True < r.expr(null) */ suite.T().Log("About to run line #373: r.Lt(true, r.Expr(nil))") runAndAssert(suite.Suite, expected_, r.Lt(true, r.Expr(nil)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #373") } { // math_logic/comparison.yaml line #378 /* true */ var expected_ bool = true /* r.expr(null) > [] */ suite.T().Log("About to run line #378: r.Expr(nil).Gt([]interface{}{})") runAndAssert(suite.Suite, expected_, r.Expr(nil).Gt([]interface{}{}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #378") } { // math_logic/comparison.yaml line #383 /* true */ var expected_ bool = true /* r.expr(null) < 12 */ suite.T().Log("About to run line #383: r.Expr(nil).Lt(12)") runAndAssert(suite.Suite, expected_, r.Expr(nil).Lt(12), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #383") } { // math_logic/comparison.yaml line #388 /* true */ var expected_ bool = true /* r.expr(null) < -2 */ suite.T().Log("About to run line #388: r.Expr(nil).Lt(-2)") runAndAssert(suite.Suite, expected_, r.Expr(nil).Lt(-2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #388") } { // math_logic/comparison.yaml line #393 /* true */ var expected_ bool = true /* r.expr(-12) < {} */ suite.T().Log("About to run line #393: r.Expr(-12).Lt(map[interface{}]interface{}{})") runAndAssert(suite.Suite, expected_, r.Expr(-12).Lt(map[interface{}]interface{}{}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #393") } { // math_logic/comparison.yaml line #398 /* true */ var expected_ bool = true /* r.expr(100) < {'a':-12} */ suite.T().Log("About to run line #398: r.Expr(100).Lt(map[interface{}]interface{}{'a': -12, })") runAndAssert(suite.Suite, expected_, r.Expr(100).Lt(map[interface{}]interface{}{"a": -12}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #398") } { // math_logic/comparison.yaml line #403 /* false */ var expected_ bool = false /* r.expr(r.binary(b"\xAE")) < 12 */ suite.T().Log("About to run line #403: r.Expr(r.Binary([]byte{174})).Lt(12)") runAndAssert(suite.Suite, expected_, r.Expr(r.Binary([]byte{174})).Lt(12), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #403") } { // math_logic/comparison.yaml line #408 /* true */ var expected_ bool = true /* r.binary(b"0xAE") < 'abc' */ suite.T().Log("About to run line #408: r.Binary([]byte{48,120,65,69}).Lt('abc')") runAndAssert(suite.Suite, expected_, r.Binary([]byte{48, 120, 65, 69}).Lt("abc"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #408") } { // math_logic/comparison.yaml line #413 /* false */ var expected_ bool = false /* r.binary(b"0xAE") > r.now() */ suite.T().Log("About to run line #413: r.Binary([]byte{48,120,65,69}).Gt(r.Now())") runAndAssert(suite.Suite, expected_, r.Binary([]byte{48, 120, 65, 69}).Gt(r.Now()), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #413") } { // math_logic/comparison.yaml line #418 /* true */ var expected_ bool = true /* r.now() > 12 */ suite.T().Log("About to run line #418: r.Now().Gt(12)") runAndAssert(suite.Suite, expected_, r.Now().Gt(12), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #418") } { // math_logic/comparison.yaml line #422 /* false */ var expected_ bool = false /* r.now() > 'abc' */ suite.T().Log("About to run line #422: r.Now().Gt('abc')") runAndAssert(suite.Suite, expected_, r.Now().Gt("abc"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #422") } { // math_logic/comparison.yaml line #426 /* true */ var expected_ bool = true /* r.expr("abc") > {'a':-12} */ suite.T().Log("About to run line #426: r.Expr('abc').Gt(map[interface{}]interface{}{'a': -12, })") runAndAssert(suite.Suite, expected_, r.Expr("abc").Gt(map[interface{}]interface{}{"a": -12}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #426") } { // math_logic/comparison.yaml line #431 /* true */ var expected_ bool = true /* r.expr("abc") > {'abc':'abc'} */ suite.T().Log("About to run line #431: r.Expr('abc').Gt(map[interface{}]interface{}{'abc': 'abc', })") runAndAssert(suite.Suite, expected_, r.Expr("abc").Gt(map[interface{}]interface{}{"abc": "abc"}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #431") } { // math_logic/comparison.yaml line #436 /* true */ var expected_ bool = true /* r.expr('zzz') > 128 */ suite.T().Log("About to run line #436: r.Expr('zzz').Gt(128)") runAndAssert(suite.Suite, expected_, r.Expr("zzz").Gt(128), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #436") } { // math_logic/comparison.yaml line #441 /* true */ var expected_ bool = true /* r.expr('zzz') > {} */ suite.T().Log("About to run line #441: r.Expr('zzz').Gt(map[interface{}]interface{}{})") runAndAssert(suite.Suite, expected_, r.Expr("zzz").Gt(map[interface{}]interface{}{}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #441") } { // math_logic/comparison.yaml line #446 /* true */ var expected_ bool = true /* 'zzz' > r.expr(-152) */ suite.T().Log("About to run line #446: r.Gt('zzz', r.Expr(-152))") runAndAssert(suite.Suite, expected_, r.Gt("zzz", r.Expr(-152)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #446") } { // math_logic/comparison.yaml line #451 /* true */ var expected_ bool = true /* 'zzz' > r.expr(null) */ suite.T().Log("About to run line #451: r.Gt('zzz', r.Expr(nil))") runAndAssert(suite.Suite, expected_, r.Gt("zzz", r.Expr(nil)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #451") } { // math_logic/comparison.yaml line #456 /* true */ var expected_ bool = true /* 'zzz' > r.expr([]) */ suite.T().Log("About to run line #456: r.Gt('zzz', r.Expr([]interface{}{}))") runAndAssert(suite.Suite, expected_, r.Gt("zzz", r.Expr([]interface{}{})), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #456") } // math_logic/comparison.yaml line #463 // everything2 = r.expr([r.minval,[],r.now(),r.binary(b"\x00"),false,null,-5,{},"a"]) suite.T().Log("Possibly executing: var everything2 r.Term = r.Expr([]interface{}{r.MinVal, []interface{}{}, r.Now(), r.Binary([]byte{0}), false, nil, -5, map[interface{}]interface{}{}, 'a'})") everything2 := r.Expr([]interface{}{r.MinVal, []interface{}{}, r.Now(), r.Binary([]byte{0}), false, nil, -5, map[interface{}]interface{}{}, "a"}) _ = everything2 // Prevent any noused variable errors { // math_logic/comparison.yaml line #467 /* true */ var expected_ bool = true /* r.and_(r.args(everything2.map(r.gt(r.maxval, r.row)))) */ suite.T().Log("About to run line #467: r.And(r.Args(everything2.Map(r.Gt(r.MaxVal, r.Row))))") runAndAssert(suite.Suite, expected_, r.And(r.Args(everything2.Map(r.Gt(r.MaxVal, r.Row)))), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #467") } { // math_logic/comparison.yaml line #472 /* false */ var expected_ bool = false /* r.or_(r.args(everything2.map(r.lt(r.maxval, r.row)))) */ suite.T().Log("About to run line #472: r.Or(r.Args(everything2.Map(r.Lt(r.MaxVal, r.Row))))") runAndAssert(suite.Suite, expected_, r.Or(r.Args(everything2.Map(r.Lt(r.MaxVal, r.Row)))), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #472") } { // math_logic/comparison.yaml line #476 /* true */ var expected_ bool = true /* r.eq(r.maxval, r.maxval) */ suite.T().Log("About to run line #476: r.Eq(r.MaxVal, r.MaxVal)") runAndAssert(suite.Suite, expected_, r.Eq(r.MaxVal, r.MaxVal), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #476") } }