func (suite *MathLogicLogicSuite) TestCases() { suite.T().Log("Running MathLogicLogicSuite: These tests are aimed at &&, ||, and !") { // math_logic/logic.yaml line #8 /* true */ var expected_ bool = true /* r.expr(true) & true */ suite.T().Log("About to run line #8: r.Expr(true).And(true)") runAndAssert(suite.Suite, expected_, r.Expr(true).And(true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #8") } { // math_logic/logic.yaml line #9 /* true */ var expected_ bool = true /* true & r.expr(true) */ suite.T().Log("About to run line #9: r.And(true, r.Expr(true))") runAndAssert(suite.Suite, expected_, r.And(true, r.Expr(true)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #9") } { // math_logic/logic.yaml line #10 /* true */ var expected_ bool = true /* r.and_(true,true) */ suite.T().Log("About to run line #10: r.And(true, true)") runAndAssert(suite.Suite, expected_, r.And(true, true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #10") } { // math_logic/logic.yaml line #11 /* true */ var expected_ bool = true /* r.expr(true).and_(true) */ suite.T().Log("About to run line #11: r.Expr(true).And(true)") runAndAssert(suite.Suite, expected_, r.Expr(true).And(true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #11") } { // math_logic/logic.yaml line #22 /* false */ var expected_ bool = false /* r.expr(true) & false */ suite.T().Log("About to run line #22: r.Expr(true).And(false)") runAndAssert(suite.Suite, expected_, r.Expr(true).And(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #22") } { // math_logic/logic.yaml line #23 /* false */ var expected_ bool = false /* r.expr(false) & false */ suite.T().Log("About to run line #23: r.Expr(false).And(false)") runAndAssert(suite.Suite, expected_, r.Expr(false).And(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #23") } { // math_logic/logic.yaml line #24 /* false */ var expected_ bool = false /* true & r.expr(false) */ suite.T().Log("About to run line #24: r.And(true, r.Expr(false))") runAndAssert(suite.Suite, expected_, r.And(true, r.Expr(false)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #24") } { // math_logic/logic.yaml line #25 /* false */ var expected_ bool = false /* false & r.expr(false) */ suite.T().Log("About to run line #25: r.And(false, r.Expr(false))") runAndAssert(suite.Suite, expected_, r.And(false, r.Expr(false)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #25") } { // math_logic/logic.yaml line #26 /* false */ var expected_ bool = false /* r.and_(true,false) */ suite.T().Log("About to run line #26: r.And(true, false)") runAndAssert(suite.Suite, expected_, r.And(true, false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #26") } { // math_logic/logic.yaml line #27 /* false */ var expected_ bool = false /* r.and_(false,false) */ suite.T().Log("About to run line #27: r.And(false, false)") runAndAssert(suite.Suite, expected_, r.And(false, false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #27") } { // math_logic/logic.yaml line #28 /* false */ var expected_ bool = false /* r.expr(true).and_(false) */ suite.T().Log("About to run line #28: r.Expr(true).And(false)") runAndAssert(suite.Suite, expected_, r.Expr(true).And(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #28") } { // math_logic/logic.yaml line #29 /* false */ var expected_ bool = false /* r.expr(false).and_(false) */ suite.T().Log("About to run line #29: r.Expr(false).And(false)") runAndAssert(suite.Suite, expected_, r.Expr(false).And(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #29") } { // math_logic/logic.yaml line #48 /* true */ var expected_ bool = true /* r.expr(true) | true */ suite.T().Log("About to run line #48: r.Expr(true).Or(true)") runAndAssert(suite.Suite, expected_, r.Expr(true).Or(true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #48") } { // math_logic/logic.yaml line #49 /* true */ var expected_ bool = true /* r.expr(true) | false */ suite.T().Log("About to run line #49: r.Expr(true).Or(false)") runAndAssert(suite.Suite, expected_, r.Expr(true).Or(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #49") } { // math_logic/logic.yaml line #50 /* true */ var expected_ bool = true /* true | r.expr(true) */ suite.T().Log("About to run line #50: r.Or(true, r.Expr(true))") runAndAssert(suite.Suite, expected_, r.Or(true, r.Expr(true)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #50") } { // math_logic/logic.yaml line #51 /* true */ var expected_ bool = true /* true | r.expr(false) */ suite.T().Log("About to run line #51: r.Or(true, r.Expr(false))") runAndAssert(suite.Suite, expected_, r.Or(true, r.Expr(false)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #51") } { // math_logic/logic.yaml line #52 /* true */ var expected_ bool = true /* r.or_(true,true) */ suite.T().Log("About to run line #52: r.Or(true, true)") runAndAssert(suite.Suite, expected_, r.Or(true, true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #52") } { // math_logic/logic.yaml line #53 /* true */ var expected_ bool = true /* r.or_(true,false) */ suite.T().Log("About to run line #53: r.Or(true, false)") runAndAssert(suite.Suite, expected_, r.Or(true, false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #53") } { // math_logic/logic.yaml line #54 /* true */ var expected_ bool = true /* r.expr(true).or_(true) */ suite.T().Log("About to run line #54: r.Expr(true).Or(true)") runAndAssert(suite.Suite, expected_, r.Expr(true).Or(true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #54") } { // math_logic/logic.yaml line #55 /* true */ var expected_ bool = true /* r.expr(true).or_(false) */ suite.T().Log("About to run line #55: r.Expr(true).Or(false)") runAndAssert(suite.Suite, expected_, r.Expr(true).Or(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #55") } { // math_logic/logic.yaml line #72 /* false */ var expected_ bool = false /* r.expr(false) | false */ suite.T().Log("About to run line #72: r.Expr(false).Or(false)") runAndAssert(suite.Suite, expected_, r.Expr(false).Or(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #72") } { // math_logic/logic.yaml line #73 /* false */ var expected_ bool = false /* false | r.expr(false) */ suite.T().Log("About to run line #73: r.Or(false, r.Expr(false))") runAndAssert(suite.Suite, expected_, r.Or(false, r.Expr(false)), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #73") } { // math_logic/logic.yaml line #74 /* false */ var expected_ bool = false /* r.and_(false,false) */ suite.T().Log("About to run line #74: r.And(false, false)") runAndAssert(suite.Suite, expected_, r.And(false, false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #74") } { // math_logic/logic.yaml line #75 /* false */ var expected_ bool = false /* r.expr(false).and_(false) */ suite.T().Log("About to run line #75: r.Expr(false).And(false)") runAndAssert(suite.Suite, expected_, r.Expr(false).And(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #75") } { // math_logic/logic.yaml line #88 /* false */ var expected_ bool = false /* ~r.expr(True) */ suite.T().Log("About to run line #88: r.Expr(true).Not()") runAndAssert(suite.Suite, expected_, r.Expr(true).Not(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #88") } { // math_logic/logic.yaml line #89 /* false */ var expected_ bool = false /* r.not_(True) */ suite.T().Log("About to run line #89: r.Not(true)") runAndAssert(suite.Suite, expected_, r.Not(true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #89") } { // math_logic/logic.yaml line #93 /* true */ var expected_ bool = true /* ~r.expr(False) */ suite.T().Log("About to run line #93: r.Expr(false).Not()") runAndAssert(suite.Suite, expected_, r.Expr(false).Not(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #93") } { // math_logic/logic.yaml line #94 /* true */ var expected_ bool = true /* r.not_(False) */ suite.T().Log("About to run line #94: r.Not(false)") runAndAssert(suite.Suite, expected_, r.Not(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #94") } { // math_logic/logic.yaml line #97 /* false */ var expected_ bool = false /* r.expr(True).not_() */ suite.T().Log("About to run line #97: r.Expr(true).Not()") runAndAssert(suite.Suite, expected_, r.Expr(true).Not(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #97") } { // math_logic/logic.yaml line #100 /* true */ var expected_ bool = true /* r.expr(False).not_() */ suite.T().Log("About to run line #100: r.Expr(false).Not()") runAndAssert(suite.Suite, expected_, r.Expr(false).Not(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #100") } { // math_logic/logic.yaml line #107 /* true */ var expected_ bool = true /* ~r.and_(True, True) == r.or_(~r.expr(True), ~r.expr(True)) */ suite.T().Log("About to run line #107: r.And(true, true).Not().Eq(r.Or(r.Expr(true).Not(), r.Expr(true).Not()))") runAndAssert(suite.Suite, expected_, r.And(true, true).Not().Eq(r.Or(r.Expr(true).Not(), r.Expr(true).Not())), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #107") } { // math_logic/logic.yaml line #108 /* true */ var expected_ bool = true /* ~r.and_(True, False) == r.or_(~r.expr(True), ~r.expr(False)) */ suite.T().Log("About to run line #108: r.And(true, false).Not().Eq(r.Or(r.Expr(true).Not(), r.Expr(false).Not()))") runAndAssert(suite.Suite, expected_, r.And(true, false).Not().Eq(r.Or(r.Expr(true).Not(), r.Expr(false).Not())), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #108") } { // math_logic/logic.yaml line #109 /* true */ var expected_ bool = true /* ~r.and_(False, False) == r.or_(~r.expr(False), ~r.expr(False)) */ suite.T().Log("About to run line #109: r.And(false, false).Not().Eq(r.Or(r.Expr(false).Not(), r.Expr(false).Not()))") runAndAssert(suite.Suite, expected_, r.And(false, false).Not().Eq(r.Or(r.Expr(false).Not(), r.Expr(false).Not())), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #109") } { // math_logic/logic.yaml line #110 /* true */ var expected_ bool = true /* ~r.and_(False, True) == r.or_(~r.expr(False), ~r.expr(True)) */ suite.T().Log("About to run line #110: r.And(false, true).Not().Eq(r.Or(r.Expr(false).Not(), r.Expr(true).Not()))") runAndAssert(suite.Suite, expected_, r.And(false, true).Not().Eq(r.Or(r.Expr(false).Not(), r.Expr(true).Not())), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #110") } { // math_logic/logic.yaml line #120 /* true */ var expected_ bool = true /* r.and_(True, True, True, True, True) */ suite.T().Log("About to run line #120: r.And(true, true, true, true, true)") runAndAssert(suite.Suite, expected_, r.And(true, true, true, true, true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #120") } { // math_logic/logic.yaml line #123 /* false */ var expected_ bool = false /* r.and_(True, True, True, False, True) */ suite.T().Log("About to run line #123: r.And(true, true, true, false, true)") runAndAssert(suite.Suite, expected_, r.And(true, true, true, false, true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #123") } { // math_logic/logic.yaml line #126 /* false */ var expected_ bool = false /* r.and_(True, False, True, False, True) */ suite.T().Log("About to run line #126: r.And(true, false, true, false, true)") runAndAssert(suite.Suite, expected_, r.And(true, false, true, false, true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #126") } { // math_logic/logic.yaml line #129 /* false */ var expected_ bool = false /* r.or_(False, False, False, False, False) */ suite.T().Log("About to run line #129: r.Or(false, false, false, false, false)") runAndAssert(suite.Suite, expected_, r.Or(false, false, false, false, false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #129") } { // math_logic/logic.yaml line #132 /* true */ var expected_ bool = true /* r.or_(False, False, False, True, False) */ suite.T().Log("About to run line #132: r.Or(false, false, false, true, false)") runAndAssert(suite.Suite, expected_, r.Or(false, false, false, true, false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #132") } { // math_logic/logic.yaml line #135 /* true */ var expected_ bool = true /* r.or_(False, True, False, True, False) */ suite.T().Log("About to run line #135: r.Or(false, true, false, true, false)") runAndAssert(suite.Suite, expected_, r.Or(false, true, false, true, false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #135") } { // math_logic/logic.yaml line #140 /* err("ReqlQueryLogicError", "Cannot perform bracket on a non-object non-sequence `\"a\"`.", []) */ var expected_ Err = err("ReqlQueryLogicError", "Cannot perform bracket on a non-object non-sequence `\"a\"`.") /* r.expr(r.expr('a')['b']).default(2) */ suite.T().Log("About to run line #140: r.Expr(r.Expr('a').AtIndex('b')).Default(2)") runAndAssert(suite.Suite, expected_, r.Expr(r.Expr("a").AtIndex("b")).Default(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #140") } { // math_logic/logic.yaml line #145 /* False */ var expected_ bool = false /* r.expr(r.and_(True, False) == r.or_(False, True)) */ suite.T().Log("About to run line #145: r.Expr(r.And(true, false).Eq(r.Or(false, true)))") runAndAssert(suite.Suite, expected_, r.Expr(r.And(true, false).Eq(r.Or(false, true))), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #145") } { // math_logic/logic.yaml line #151 /* False */ var expected_ bool = false /* r.expr(r.and_(True, False) >= r.or_(False, True)) */ suite.T().Log("About to run line #151: r.Expr(r.And(true, false).Ge(r.Or(false, true)))") runAndAssert(suite.Suite, expected_, r.Expr(r.And(true, false).Ge(r.Or(false, true))), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #151") } { // math_logic/logic.yaml line #155 /* true */ var expected_ bool = true /* r.expr(1) & True */ suite.T().Log("About to run line #155: r.Expr(1).And(true)") runAndAssert(suite.Suite, expected_, r.Expr(1).And(true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #155") } { // math_logic/logic.yaml line #159 /* ("str") */ var expected_ string = "str" /* r.expr(False) | 'str' */ suite.T().Log("About to run line #159: r.Expr(false).Or('str')") runAndAssert(suite.Suite, expected_, r.Expr(false).Or("str"), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #159") } { // math_logic/logic.yaml line #163 /* false */ var expected_ bool = false /* ~r.expr(1) */ suite.T().Log("About to run line #163: r.Expr(1).Not()") runAndAssert(suite.Suite, expected_, r.Expr(1).Not(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #163") } { // math_logic/logic.yaml line #167 /* true */ var expected_ bool = true /* ~r.expr(null) */ suite.T().Log("About to run line #167: r.Expr(nil).Not()") runAndAssert(suite.Suite, expected_, r.Expr(nil).Not(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #167") } }
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") } }
func (suite *RandomSuite) TestCases() { suite.T().Log("Running RandomSuite: Tests randomization functions") { // random.yaml line #5 /* 3 */ var expected_ int = 3 /* r.expr([1,2,3]).sample(3).distinct().count() */ suite.T().Log("About to run line #5: r.Expr([]interface{}{1, 2, 3}).Sample(3).Distinct().Count()") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 2, 3}).Sample(3).Distinct().Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #5") } { // random.yaml line #7 /* 3 */ var expected_ int = 3 /* r.expr([1,2,3]).sample(3).count() */ suite.T().Log("About to run line #7: r.Expr([]interface{}{1, 2, 3}).Sample(3).Count()") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 2, 3}).Sample(3).Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #7") } { // random.yaml line #9 /* 3 */ var expected_ int = 3 /* r.expr([1,2,3,4,5,6]).sample(3).distinct().count() */ suite.T().Log("About to run line #9: r.Expr([]interface{}{1, 2, 3, 4, 5, 6}).Sample(3).Distinct().Count()") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 2, 3, 4, 5, 6}).Sample(3).Distinct().Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #9") } { // random.yaml line #11 /* 3 */ var expected_ int = 3 /* r.expr([1,2,3]).sample(4).distinct().count() */ suite.T().Log("About to run line #11: r.Expr([]interface{}{1, 2, 3}).Sample(4).Distinct().Count()") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 2, 3}).Sample(4).Distinct().Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #11") } { // random.yaml line #15 /* err('ReqlQueryLogicError', 'Number of items to sample must be non-negative, got `-1`.', [0]) */ var expected_ Err = err("ReqlQueryLogicError", "Number of items to sample must be non-negative, got `-1`.") /* r.expr([1,2,3]).sample(-1) */ suite.T().Log("About to run line #15: r.Expr([]interface{}{1, 2, 3}).Sample(-1)") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{1, 2, 3}).Sample(-1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #15") } { // random.yaml line #17 /* err('ReqlQueryLogicError', 'Cannot convert NUMBER to SEQUENCE', [0]) */ var expected_ Err = err("ReqlQueryLogicError", "Cannot convert NUMBER to SEQUENCE") /* r.expr(1).sample(1) */ suite.T().Log("About to run line #17: r.Expr(1).Sample(1)") runAndAssert(suite.Suite, expected_, r.Expr(1).Sample(1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #17") } { // random.yaml line #19 /* err('ReqlQueryLogicError', 'Cannot convert OBJECT to SEQUENCE', [0]) */ var expected_ Err = err("ReqlQueryLogicError", "Cannot convert OBJECT to SEQUENCE") /* r.expr({}).sample(1) */ suite.T().Log("About to run line #19: r.Expr(map[interface{}]interface{}{}).Sample(1)") runAndAssert(suite.Suite, expected_, r.Expr(map[interface{}]interface{}{}).Sample(1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #19") } { // random.yaml line #25 /* True */ var expected_ bool = true /* r.random().do(lambda x:r.and_(x.ge(0), x.lt(1))) */ suite.T().Log("About to run line #25: r.Random().Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1))})") runAndAssert(suite.Suite, expected_, r.Random().Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #25") } { // random.yaml line #26 /* True */ var expected_ bool = true /* r.random(1, float=True).do(lambda x:r.and_(x.ge(0), x.lt(1))) */ suite.T().Log("About to run line #26: r.Random(1).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1))})") runAndAssert(suite.Suite, expected_, r.Random(1).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #26") } { // random.yaml line #27 /* True */ var expected_ bool = true /* r.random(0, 1, float=True).do(lambda x:r.and_(x.ge(0), x.lt(1))) */ suite.T().Log("About to run line #27: r.Random(0, 1).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1))})") runAndAssert(suite.Suite, expected_, r.Random(0, 1).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #27") } { // random.yaml line #28 /* True */ var expected_ bool = true /* r.random(1, 0, float=True).do(lambda x:r.and_(x.le(1), x.gt(0))) */ suite.T().Log("About to run line #28: r.Random(1, 0).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(1), x.Gt(0))})") runAndAssert(suite.Suite, expected_, r.Random(1, 0).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(1), x.Gt(0)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #28") } { // random.yaml line #29 /* True */ var expected_ bool = true /* r.random(r.expr(0), 1, float=True).do(lambda x:r.and_(x.ge(0), x.lt(1))) */ suite.T().Log("About to run line #29: r.Random(r.Expr(0), 1).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1))})") runAndAssert(suite.Suite, expected_, r.Random(r.Expr(0), 1).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #29") } { // random.yaml line #30 /* True */ var expected_ bool = true /* r.random(1, r.expr(0), float=True).do(lambda x:r.and_(x.le(1), x.gt(0))) */ suite.T().Log("About to run line #30: r.Random(1, r.Expr(0)).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(1), x.Gt(0))})") runAndAssert(suite.Suite, expected_, r.Random(1, r.Expr(0)).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(1), x.Gt(0)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #30") } { // random.yaml line #31 /* True */ var expected_ bool = true /* r.random(r.expr(1), r.expr(0), float=True).do(lambda x:r.and_(x.le(1), x.gt(0))) */ suite.T().Log("About to run line #31: r.Random(r.Expr(1), r.Expr(0)).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(1), x.Gt(0))})") runAndAssert(suite.Suite, expected_, r.Random(r.Expr(1), r.Expr(0)).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(1), x.Gt(0)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #31") } { // random.yaml line #36 /* True */ var expected_ bool = true /* r.random(0.495, float=True).do(lambda x:r.and_(x.ge(0), x.lt(0.495))) */ suite.T().Log("About to run line #36: r.Random(0.495).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(0.495))})") runAndAssert(suite.Suite, expected_, r.Random(0.495).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(0.495)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #36") } { // random.yaml line #37 /* True */ var expected_ bool = true /* r.random(-0.495, float=True).do(lambda x:r.and_(x.le(0), x.gt(-0.495))) */ suite.T().Log("About to run line #37: r.Random(-0.495).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(0), x.Gt(-0.495))})") runAndAssert(suite.Suite, expected_, r.Random(-0.495).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(0), x.Gt(-0.495)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #37") } { // random.yaml line #38 /* True */ var expected_ bool = true /* r.random(1823756.24, float=True).do(lambda x:r.and_(x.ge(0), x.lt(1823756.24))) */ suite.T().Log("About to run line #38: r.Random(1823756.24).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1823756.24))})") runAndAssert(suite.Suite, expected_, r.Random(1823756.24).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(1823756.24)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #38") } { // random.yaml line #39 /* True */ var expected_ bool = true /* r.random(-1823756.24, float=True).do(lambda x:r.and_(x.le(0), x.gt(-1823756.24))) */ suite.T().Log("About to run line #39: r.Random(-1823756.24).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(0), x.Gt(-1823756.24))})") runAndAssert(suite.Suite, expected_, r.Random(-1823756.24).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(0), x.Gt(-1823756.24)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #39") } { // random.yaml line #44 /* True */ var expected_ bool = true /* r.random(10.5, 20.153, float=True).do(lambda x:r.and_(x.ge(10.5), x.lt(20.153))) */ suite.T().Log("About to run line #44: r.Random(10.5, 20.153).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(10.5), x.Lt(20.153))})") runAndAssert(suite.Suite, expected_, r.Random(10.5, 20.153).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(10.5), x.Lt(20.153)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #44") } { // random.yaml line #45 /* True */ var expected_ bool = true /* r.random(20.153, 10.5, float=True).do(lambda x:r.and_(x.le(20.153), x.gt(10.5))) */ suite.T().Log("About to run line #45: r.Random(20.153, 10.5).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(20.153), x.Gt(10.5))})") runAndAssert(suite.Suite, expected_, r.Random(20.153, 10.5).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(20.153), x.Gt(10.5)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #45") } { // random.yaml line #46 /* True */ var expected_ bool = true /* r.random(31415926.1, 31415926, float=True).do(lambda x:r.and_(x.le(31415926.1), x.gt(31415926))) */ suite.T().Log("About to run line #46: r.Random(31415926.1, 31415926).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(31415926.1), x.Gt(31415926))})") runAndAssert(suite.Suite, expected_, r.Random(31415926.1, 31415926).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(31415926.1), x.Gt(31415926)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #46") } { // random.yaml line #51 /* True */ var expected_ bool = true /* r.random(-10.5, 20.153, float=True).do(lambda x:r.and_(x.ge(-10.5), x.lt(20.153))) */ suite.T().Log("About to run line #51: r.Random(-10.5, 20.153).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(-10.5), x.Lt(20.153))})") runAndAssert(suite.Suite, expected_, r.Random(-10.5, 20.153).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(-10.5), x.Lt(20.153)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #51") } { // random.yaml line #52 /* True */ var expected_ bool = true /* r.random(-20.153, -10.5, float=True).do(lambda x:r.and_(x.ge(-20.153), x.lt(-10.5))) */ suite.T().Log("About to run line #52: r.Random(-20.153, -10.5).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(-20.153), x.Lt(-10.5))})") runAndAssert(suite.Suite, expected_, r.Random(-20.153, -10.5).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(-20.153), x.Lt(-10.5)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #52") } { // random.yaml line #53 /* True */ var expected_ bool = true /* r.random(-31415926, -31415926.1, float=True).do(lambda x:r.and_(x.le(-31415926), x.gt(-31415926.1))) */ suite.T().Log("About to run line #53: r.Random(-31415926, -31415926.1).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(-31415926), x.Gt(-31415926.1))})") runAndAssert(suite.Suite, expected_, r.Random(-31415926, -31415926.1).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(-31415926), x.Gt(-31415926.1)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #53") } { // random.yaml line #58 /* 2 */ var expected_ int = 2 /* r.expr([r.random(), r.random()]).distinct().count() */ suite.T().Log("About to run line #58: r.Expr([]interface{}{r.Random(), r.Random()}).Distinct().Count()") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{r.Random(), r.Random()}).Distinct().Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #58") } { // random.yaml line #59 /* 2 */ var expected_ int = 2 /* r.expr([r.random(1, float=True), r.random(1, float=True)]).distinct().count() */ suite.T().Log("About to run line #59: r.Expr([]interface{}{r.Random(1).OptArgs(r.RandomOpts{Float: true, }), r.Random(1).OptArgs(r.RandomOpts{Float: true, })}).Distinct().Count()") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{r.Random(1).OptArgs(r.RandomOpts{Float: true}), r.Random(1).OptArgs(r.RandomOpts{Float: true})}).Distinct().Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #59") } { // random.yaml line #60 /* 2 */ var expected_ int = 2 /* r.expr([r.random(0, 1, float=True), r.random(0, 1, float=True)]).distinct().count() */ suite.T().Log("About to run line #60: r.Expr([]interface{}{r.Random(0, 1).OptArgs(r.RandomOpts{Float: true, }), r.Random(0, 1).OptArgs(r.RandomOpts{Float: true, })}).Distinct().Count()") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{r.Random(0, 1).OptArgs(r.RandomOpts{Float: true}), r.Random(0, 1).OptArgs(r.RandomOpts{Float: true})}).Distinct().Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #60") } { // random.yaml line #65 /* True */ var expected_ bool = true /* r.random(0, float=True).eq(0) */ suite.T().Log("About to run line #65: r.Random(0).OptArgs(r.RandomOpts{Float: true, }).Eq(0)") runAndAssert(suite.Suite, expected_, r.Random(0).OptArgs(r.RandomOpts{Float: true}).Eq(0), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #65") } { // random.yaml line #66 /* True */ var expected_ bool = true /* r.random(5, 5, float=True).eq(5) */ suite.T().Log("About to run line #66: r.Random(5, 5).OptArgs(r.RandomOpts{Float: true, }).Eq(5)") runAndAssert(suite.Suite, expected_, r.Random(5, 5).OptArgs(r.RandomOpts{Float: true}).Eq(5), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #66") } { // random.yaml line #67 /* True */ var expected_ bool = true /* r.random(-499384756758, -499384756758, float=True).eq(-499384756758) */ suite.T().Log("About to run line #67: r.Random(-499384756758, -499384756758).OptArgs(r.RandomOpts{Float: true, }).Eq(-499384756758)") runAndAssert(suite.Suite, expected_, r.Random(-499384756758, -499384756758).OptArgs(r.RandomOpts{Float: true}).Eq(-499384756758), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #67") } { // random.yaml line #68 /* True */ var expected_ bool = true /* r.random(-93.94757, -93.94757, float=True).eq(-93.94757) */ suite.T().Log("About to run line #68: r.Random(-93.94757, -93.94757).OptArgs(r.RandomOpts{Float: true, }).Eq(-93.94757)") runAndAssert(suite.Suite, expected_, r.Random(-93.94757, -93.94757).OptArgs(r.RandomOpts{Float: true}).Eq(-93.94757), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #68") } { // random.yaml line #69 /* True */ var expected_ bool = true /* r.random(294.69148, 294.69148, float=True).eq(294.69148) */ suite.T().Log("About to run line #69: r.Random(294.69148, 294.69148).OptArgs(r.RandomOpts{Float: true, }).Eq(294.69148)") runAndAssert(suite.Suite, expected_, r.Random(294.69148, 294.69148).OptArgs(r.RandomOpts{Float: true}).Eq(294.69148), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #69") } // random.yaml line #74 // float_max = sys.float_info.max suite.T().Log("Possibly executing: var float_max float64 = sys.FloatInfo.Max") float_max := sys.FloatInfo.Max _ = float_max // Prevent any noused variable errors // random.yaml line #78 // float_min = sys.float_info.min suite.T().Log("Possibly executing: var float_min float64 = sys.FloatInfo.Min") float_min := sys.FloatInfo.Min _ = float_min // Prevent any noused variable errors { // random.yaml line #82 /* True */ var expected_ bool = true /* r.random(-float_max, float_max, float=True).do(lambda x:r.and_(x.ge(-float_max), x.lt(float_max))) */ suite.T().Log("About to run line #82: r.Random(-float_max, float_max).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(-float_max), x.Lt(float_max))})") runAndAssert(suite.Suite, expected_, r.Random(-float_max, float_max).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(-float_max), x.Lt(float_max)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #82") } { // random.yaml line #83 /* True */ var expected_ bool = true /* r.random(float_max, -float_max, float=True).do(lambda x:r.and_(x.le(float_max), x.gt(-float_max))) */ suite.T().Log("About to run line #83: r.Random(float_max, -float_max).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(float_max), x.Gt(-float_max))})") runAndAssert(suite.Suite, expected_, r.Random(float_max, -float_max).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(float_max), x.Gt(-float_max)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #83") } { // random.yaml line #84 /* True */ var expected_ bool = true /* r.random(float_min, float_max, float=True).do(lambda x:r.and_(x.ge(float_min), x.lt(float_max))) */ suite.T().Log("About to run line #84: r.Random(float_min, float_max).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(float_min), x.Lt(float_max))})") runAndAssert(suite.Suite, expected_, r.Random(float_min, float_max).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(float_min), x.Lt(float_max)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #84") } { // random.yaml line #85 /* True */ var expected_ bool = true /* r.random(float_min, -float_max, float=True).do(lambda x:r.and_(x.le(float_min), x.gt(-float_max))) */ suite.T().Log("About to run line #85: r.Random(float_min, -float_max).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(float_min), x.Gt(-float_max))})") runAndAssert(suite.Suite, expected_, r.Random(float_min, -float_max).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(float_min), x.Gt(-float_max)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #85") } { // random.yaml line #86 /* True */ var expected_ bool = true /* r.random(-float_min, float_max, float=True).do(lambda x:r.and_(x.ge(-float_min), x.lt(float_max))) */ suite.T().Log("About to run line #86: r.Random(-float_min, float_max).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Ge(-float_min), x.Lt(float_max))})") runAndAssert(suite.Suite, expected_, r.Random(-float_min, float_max).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Ge(-float_min), x.Lt(float_max)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #86") } { // random.yaml line #87 /* True */ var expected_ bool = true /* r.random(-float_min, -float_max, float=True).do(lambda x:r.and_(x.le(-float_min), x.gt(-float_max))) */ suite.T().Log("About to run line #87: r.Random(-float_min, -float_max).OptArgs(r.RandomOpts{Float: true, }).Do(func(x r.Term) interface{} { return r.And(x.Le(-float_min), x.Gt(-float_max))})") runAndAssert(suite.Suite, expected_, r.Random(-float_min, -float_max).OptArgs(r.RandomOpts{Float: true}).Do(func(x r.Term) interface{} { return r.And(x.Le(-float_min), x.Gt(-float_max)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #87") } // random.yaml line #92 // upper_limit = 2**53 - 1 suite.T().Log("Possibly executing: var upper_limit int = 2<<52 - 1") upper_limit := 2<<52 - 1 _ = upper_limit // Prevent any noused variable errors // random.yaml line #96 // lower_limit = 1 - (2**53) suite.T().Log("Possibly executing: var lower_limit int = 1 - 2<<52") lower_limit := 1 - 2<<52 _ = lower_limit // Prevent any noused variable errors { // random.yaml line #101 /* True */ var expected_ bool = true /* r.random(256).do(lambda x:r.and_(x.ge(0), x.lt(256))) */ suite.T().Log("About to run line #101: r.Random(256).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256))})") runAndAssert(suite.Suite, expected_, r.Random(256).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #101") } { // random.yaml line #102 /* True */ var expected_ bool = true /* r.random(0, 256).do(lambda x:r.and_(x.ge(0), x.lt(256))) */ suite.T().Log("About to run line #102: r.Random(0, 256).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256))})") runAndAssert(suite.Suite, expected_, r.Random(0, 256).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #102") } { // random.yaml line #103 /* True */ var expected_ bool = true /* r.random(r.expr(256)).do(lambda x:r.and_(x.ge(0), x.lt(256))) */ suite.T().Log("About to run line #103: r.Random(r.Expr(256)).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256))})") runAndAssert(suite.Suite, expected_, r.Random(r.Expr(256)).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #103") } { // random.yaml line #104 /* True */ var expected_ bool = true /* r.random(r.expr(0), 256).do(lambda x:r.and_(x.ge(0), x.lt(256))) */ suite.T().Log("About to run line #104: r.Random(r.Expr(0), 256).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256))})") runAndAssert(suite.Suite, expected_, r.Random(r.Expr(0), 256).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #104") } { // random.yaml line #105 /* True */ var expected_ bool = true /* r.random(0, r.expr(256)).do(lambda x:r.and_(x.ge(0), x.lt(256))) */ suite.T().Log("About to run line #105: r.Random(0, r.Expr(256)).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256))})") runAndAssert(suite.Suite, expected_, r.Random(0, r.Expr(256)).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #105") } { // random.yaml line #106 /* True */ var expected_ bool = true /* r.random(r.expr(0), r.expr(256)).do(lambda x:r.and_(x.ge(0), x.lt(256))) */ suite.T().Log("About to run line #106: r.Random(r.Expr(0), r.Expr(256)).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256))})") runAndAssert(suite.Suite, expected_, r.Random(r.Expr(0), r.Expr(256)).Do(func(x r.Term) interface{} { return r.And(x.Ge(0), x.Lt(256)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #106") } { // random.yaml line #111 /* True */ var expected_ bool = true /* r.random(10, 20).do(lambda x:r.and_(x.ge(10), x.lt(20))) */ suite.T().Log("About to run line #111: r.Random(10, 20).Do(func(x r.Term) interface{} { return r.And(x.Ge(10), x.Lt(20))})") runAndAssert(suite.Suite, expected_, r.Random(10, 20).Do(func(x r.Term) interface{} { return r.And(x.Ge(10), x.Lt(20)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #111") } { // random.yaml line #112 /* True */ var expected_ bool = true /* r.random(9347849, 120937493).do(lambda x:r.and_(x.ge(9347849), x.lt(120937493))) */ suite.T().Log("About to run line #112: r.Random(9347849, 120937493).Do(func(x r.Term) interface{} { return r.And(x.Ge(9347849), x.Lt(120937493))})") runAndAssert(suite.Suite, expected_, r.Random(9347849, 120937493).Do(func(x r.Term) interface{} { return r.And(x.Ge(9347849), x.Lt(120937493)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #112") } { // random.yaml line #123 /* True */ var expected_ bool = true /* r.random(-10, 20).do(lambda x:r.and_(x.ge(-10), x.lt(20))) */ suite.T().Log("About to run line #123: r.Random(-10, 20).Do(func(x r.Term) interface{} { return r.And(x.Ge(-10), x.Lt(20))})") runAndAssert(suite.Suite, expected_, r.Random(-10, 20).Do(func(x r.Term) interface{} { return r.And(x.Ge(-10), x.Lt(20)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #123") } { // random.yaml line #124 /* True */ var expected_ bool = true /* r.random(-20, -10).do(lambda x:r.and_(x.ge(-20), x.lt(-10))) */ suite.T().Log("About to run line #124: r.Random(-20, -10).Do(func(x r.Term) interface{} { return r.And(x.Ge(-20), x.Lt(-10))})") runAndAssert(suite.Suite, expected_, r.Random(-20, -10).Do(func(x r.Term) interface{} { return r.And(x.Ge(-20), x.Lt(-10)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #124") } { // random.yaml line #125 /* True */ var expected_ bool = true /* r.random(-120937493, -9347849).do(lambda x:r.and_(x.ge(-120937493), x.lt(-9347849))) */ suite.T().Log("About to run line #125: r.Random(-120937493, -9347849).Do(func(x r.Term) interface{} { return r.And(x.Ge(-120937493), x.Lt(-9347849))})") runAndAssert(suite.Suite, expected_, r.Random(-120937493, -9347849).Do(func(x r.Term) interface{} { return r.And(x.Ge(-120937493), x.Lt(-9347849)) }), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #125") } { // random.yaml line #137 /* 2 */ var expected_ int = 2 /* r.expr([r.random(upper_limit), r.random(upper_limit)]).distinct().count() */ suite.T().Log("About to run line #137: r.Expr([]interface{}{r.Random(upper_limit), r.Random(upper_limit)}).Distinct().Count()") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{r.Random(upper_limit), r.Random(upper_limit)}).Distinct().Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #137") } { // random.yaml line #139 /* 2 */ var expected_ int = 2 /* r.expr([upper_limit,upper_limit]).map(lambda x:r.random(x)).distinct().count() */ suite.T().Log("About to run line #139: r.Expr([]interface{}{upper_limit, upper_limit}).Map(func(x r.Term) interface{} { return r.Random(x)}).Distinct().Count()") runAndAssert(suite.Suite, expected_, r.Expr([]interface{}{upper_limit, upper_limit}).Map(func(x r.Term) interface{} { return r.Random(x) }).Distinct().Count(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #139") } { // random.yaml line #147 /* err("ReqlQueryLogicError", "Upper bound (-0.5) could not be safely converted to an integer.", []) */ var expected_ Err = err("ReqlQueryLogicError", "Upper bound (-0.5) could not be safely converted to an integer.") /* r.random(-0.5) */ suite.T().Log("About to run line #147: r.Random(-0.5)") runAndAssert(suite.Suite, expected_, r.Random(-0.5), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #147") } { // random.yaml line #149 /* err("ReqlQueryLogicError", "Upper bound (0.25) could not be safely converted to an integer.", []) */ var expected_ Err = err("ReqlQueryLogicError", "Upper bound (0.25) could not be safely converted to an integer.") /* r.random(0.25) */ suite.T().Log("About to run line #149: r.Random(0.25)") runAndAssert(suite.Suite, expected_, r.Random(0.25), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #149") } { // random.yaml line #151 /* err("ReqlQueryLogicError", "Upper bound (0.75) could not be safely converted to an integer.", []) */ var expected_ Err = err("ReqlQueryLogicError", "Upper bound (0.75) could not be safely converted to an integer.") /* r.random(-10, 0.75) */ suite.T().Log("About to run line #151: r.Random(-10, 0.75)") runAndAssert(suite.Suite, expected_, r.Random(-10, 0.75), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #151") } { // random.yaml line #153 /* err("ReqlQueryLogicError", "Lower bound (-120549.25) could not be safely converted to an integer.", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (-120549.25) could not be safely converted to an integer.") /* r.random(-120549.25, 39458) */ suite.T().Log("About to run line #153: r.Random(-120549.25, 39458)") runAndAssert(suite.Suite, expected_, r.Random(-120549.25, 39458), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #153") } { // random.yaml line #155 /* err("ReqlQueryLogicError", "Lower bound (-6.5) could not be safely converted to an integer.", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (-6.5) could not be safely converted to an integer.") /* r.random(-6.5, 8.125) */ suite.T().Log("About to run line #155: r.Random(-6.5, 8.125)") runAndAssert(suite.Suite, expected_, r.Random(-6.5, 8.125), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #155") } { // random.yaml line #159 /* err("ReqlQueryLogicError", "Generating a random integer requires one or two bounds.", []) */ var expected_ Err = err("ReqlQueryLogicError", "Generating a random integer requires one or two bounds.") /* r.random(float=False) */ suite.T().Log("About to run line #159: r.Random().OptArgs(r.RandomOpts{Float: false, })") runAndAssert(suite.Suite, expected_, r.Random().OptArgs(r.RandomOpts{Float: false}), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #159") } { // random.yaml line #165 /* err("ReqlQueryLogicError", "Lower bound (0) is not less than upper bound (0).", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (0) is not less than upper bound (0).") /* r.random(0) */ suite.T().Log("About to run line #165: r.Random(0)") runAndAssert(suite.Suite, expected_, r.Random(0), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #165") } { // random.yaml line #167 /* err("ReqlQueryLogicError", "Lower bound (0) is not less than upper bound (0).", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (0) is not less than upper bound (0).") /* r.random(0, 0) */ suite.T().Log("About to run line #167: r.Random(0, 0)") runAndAssert(suite.Suite, expected_, r.Random(0, 0), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #167") } { // random.yaml line #169 /* err("ReqlQueryLogicError", "Lower bound (515) is not less than upper bound (515).", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (515) is not less than upper bound (515).") /* r.random(515, 515) */ suite.T().Log("About to run line #169: r.Random(515, 515)") runAndAssert(suite.Suite, expected_, r.Random(515, 515), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #169") } { // random.yaml line #171 /* err("ReqlQueryLogicError", "Lower bound (-956) is not less than upper bound (-956).", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (-956) is not less than upper bound (-956).") /* r.random(-956, -956) */ suite.T().Log("About to run line #171: r.Random(-956, -956)") runAndAssert(suite.Suite, expected_, r.Random(-956, -956), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #171") } { // random.yaml line #173 /* err("ReqlQueryLogicError", "Lower bound (0) is not less than upper bound (-10).", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (0) is not less than upper bound (-10).") /* r.random(-10) */ suite.T().Log("About to run line #173: r.Random(-10)") runAndAssert(suite.Suite, expected_, r.Random(-10), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #173") } { // random.yaml line #175 /* err("ReqlQueryLogicError", "Lower bound (20) is not less than upper bound (2).", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (20) is not less than upper bound (2).") /* r.random(20, 2) */ suite.T().Log("About to run line #175: r.Random(20, 2)") runAndAssert(suite.Suite, expected_, r.Random(20, 2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #175") } { // random.yaml line #177 /* err("ReqlQueryLogicError", "Lower bound (2) is not less than upper bound (-20).", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (2) is not less than upper bound (-20).") /* r.random(2, -20) */ suite.T().Log("About to run line #177: r.Random(2, -20)") runAndAssert(suite.Suite, expected_, r.Random(2, -20), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #177") } { // random.yaml line #179 /* err("ReqlQueryLogicError", "Lower bound (1456) is not less than upper bound (0).", []) */ var expected_ Err = err("ReqlQueryLogicError", "Lower bound (1456) is not less than upper bound (0).") /* r.random(1456, 0) */ suite.T().Log("About to run line #179: r.Random(1456, 0)") runAndAssert(suite.Suite, expected_, r.Random(1456, 0), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #179") } }
func (suite *MathLogicAliasesSuite) TestCases() { suite.T().Log("Running MathLogicAliasesSuite: Test named aliases for math and logic operators") { // math_logic/aliases.yaml line #5 /* 1 */ var expected_ int = 1 /* r.expr(0).add(1) */ suite.T().Log("About to run line #5: r.Expr(0).Add(1)") runAndAssert(suite.Suite, expected_, r.Expr(0).Add(1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #5") } { // math_logic/aliases.yaml line #6 /* 1 */ var expected_ int = 1 /* r.add(0, 1) */ suite.T().Log("About to run line #6: r.Add(0, 1)") runAndAssert(suite.Suite, expected_, r.Add(0, 1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #6") } { // math_logic/aliases.yaml line #7 /* 1 */ var expected_ int = 1 /* r.expr(2).sub(1) */ suite.T().Log("About to run line #7: r.Expr(2).Sub(1)") runAndAssert(suite.Suite, expected_, r.Expr(2).Sub(1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #7") } { // math_logic/aliases.yaml line #8 /* 1 */ var expected_ int = 1 /* r.sub(2, 1) */ suite.T().Log("About to run line #8: r.Sub(2, 1)") runAndAssert(suite.Suite, expected_, r.Sub(2, 1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #8") } { // math_logic/aliases.yaml line #9 /* 1 */ var expected_ int = 1 /* r.expr(2).div(2) */ suite.T().Log("About to run line #9: r.Expr(2).Div(2)") runAndAssert(suite.Suite, expected_, r.Expr(2).Div(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #9") } { // math_logic/aliases.yaml line #10 /* 1 */ var expected_ int = 1 /* r.div(2, 2) */ suite.T().Log("About to run line #10: r.Div(2, 2)") runAndAssert(suite.Suite, expected_, r.Div(2, 2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #10") } { // math_logic/aliases.yaml line #11 /* 1 */ var expected_ int = 1 /* r.expr(1).mul(1) */ suite.T().Log("About to run line #11: r.Expr(1).Mul(1)") runAndAssert(suite.Suite, expected_, r.Expr(1).Mul(1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #11") } { // math_logic/aliases.yaml line #12 /* 1 */ var expected_ int = 1 /* r.mul(1, 1) */ suite.T().Log("About to run line #12: r.Mul(1, 1)") runAndAssert(suite.Suite, expected_, r.Mul(1, 1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #12") } { // math_logic/aliases.yaml line #13 /* 1 */ var expected_ int = 1 /* r.expr(1).mod(2) */ suite.T().Log("About to run line #13: r.Expr(1).Mod(2)") runAndAssert(suite.Suite, expected_, r.Expr(1).Mod(2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #13") } { // math_logic/aliases.yaml line #14 /* 1 */ var expected_ int = 1 /* r.mod(1, 2) */ suite.T().Log("About to run line #14: r.Mod(1, 2)") runAndAssert(suite.Suite, expected_, r.Mod(1, 2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #14") } { // math_logic/aliases.yaml line #25 /* True */ var expected_ bool = true /* r.expr(True).and_(True) */ suite.T().Log("About to run line #25: r.Expr(true).And(true)") runAndAssert(suite.Suite, expected_, r.Expr(true).And(true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #25") } { // math_logic/aliases.yaml line #26 /* True */ var expected_ bool = true /* r.expr(True).or_(True) */ suite.T().Log("About to run line #26: r.Expr(true).Or(true)") runAndAssert(suite.Suite, expected_, r.Expr(true).Or(true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #26") } { // math_logic/aliases.yaml line #27 /* True */ var expected_ bool = true /* r.and_(True, True) */ suite.T().Log("About to run line #27: r.And(true, true)") runAndAssert(suite.Suite, expected_, r.And(true, true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #27") } { // math_logic/aliases.yaml line #28 /* True */ var expected_ bool = true /* r.or_(True, True) */ suite.T().Log("About to run line #28: r.Or(true, true)") runAndAssert(suite.Suite, expected_, r.Or(true, true), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #28") } { // math_logic/aliases.yaml line #29 /* True */ var expected_ bool = true /* r.expr(False).not_() */ suite.T().Log("About to run line #29: r.Expr(false).Not()") runAndAssert(suite.Suite, expected_, r.Expr(false).Not(), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #29") } { // math_logic/aliases.yaml line #30 /* True */ var expected_ bool = true /* r.not_(False) */ suite.T().Log("About to run line #30: r.Not(false)") runAndAssert(suite.Suite, expected_, r.Not(false), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #30") } { // math_logic/aliases.yaml line #34 /* True */ var expected_ bool = true /* r.expr(1).eq(1) */ suite.T().Log("About to run line #34: r.Expr(1).Eq(1)") runAndAssert(suite.Suite, expected_, r.Expr(1).Eq(1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #34") } { // math_logic/aliases.yaml line #35 /* True */ var expected_ bool = true /* r.expr(1).ne(2) */ suite.T().Log("About to run line #35: 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 #35") } { // math_logic/aliases.yaml line #36 /* True */ var expected_ bool = true /* r.expr(1).lt(2) */ suite.T().Log("About to run line #36: 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 #36") } { // math_logic/aliases.yaml line #37 /* True */ var expected_ bool = true /* r.expr(1).gt(0) */ suite.T().Log("About to run line #37: r.Expr(1).Gt(0)") runAndAssert(suite.Suite, expected_, r.Expr(1).Gt(0), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #37") } { // math_logic/aliases.yaml line #38 /* True */ var expected_ bool = true /* r.expr(1).le(1) */ suite.T().Log("About to run line #38: r.Expr(1).Le(1)") runAndAssert(suite.Suite, expected_, r.Expr(1).Le(1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #38") } { // math_logic/aliases.yaml line #39 /* True */ var expected_ bool = true /* r.expr(1).ge(1) */ suite.T().Log("About to run line #39: r.Expr(1).Ge(1)") runAndAssert(suite.Suite, expected_, r.Expr(1).Ge(1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #39") } { // math_logic/aliases.yaml line #40 /* True */ var expected_ bool = true /* r.eq(1, 1) */ suite.T().Log("About to run line #40: r.Eq(1, 1)") runAndAssert(suite.Suite, expected_, r.Eq(1, 1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #40") } { // math_logic/aliases.yaml line #41 /* True */ var expected_ bool = true /* r.ne(1, 2) */ suite.T().Log("About to run line #41: r.Ne(1, 2)") runAndAssert(suite.Suite, expected_, r.Ne(1, 2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #41") } { // math_logic/aliases.yaml line #42 /* True */ var expected_ bool = true /* r.lt(1, 2) */ suite.T().Log("About to run line #42: r.Lt(1, 2)") runAndAssert(suite.Suite, expected_, r.Lt(1, 2), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #42") } { // math_logic/aliases.yaml line #43 /* True */ var expected_ bool = true /* r.gt(1, 0) */ suite.T().Log("About to run line #43: r.Gt(1, 0)") runAndAssert(suite.Suite, expected_, r.Gt(1, 0), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #43") } { // math_logic/aliases.yaml line #44 /* True */ var expected_ bool = true /* r.le(1, 1) */ suite.T().Log("About to run line #44: r.Le(1, 1)") runAndAssert(suite.Suite, expected_, r.Le(1, 1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #44") } { // math_logic/aliases.yaml line #45 /* True */ var expected_ bool = true /* r.ge(1, 1) */ suite.T().Log("About to run line #45: r.Ge(1, 1)") runAndAssert(suite.Suite, expected_, r.Ge(1, 1), suite.session, r.RunOpts{ GeometryFormat: "raw", GroupFormat: "map", }) suite.T().Log("Finished running line #45") } }