gopkg.in/rethinkdb/rethinkdb-go.v6@v6.2.2/internal/integration/reql_tests/reql_math_logic_bit_test.go (about) 1 // Code generated by gen_tests.py and process_polyglot.py. 2 // Do not edit this file directly. 3 // The template for this file is located at: 4 // ../template.go.tpl 5 package reql_tests 6 7 import ( 8 "testing" 9 "time" 10 11 "github.com/stretchr/testify/suite" 12 r "gopkg.in/rethinkdb/rethinkdb-go.v6" 13 "gopkg.in/rethinkdb/rethinkdb-go.v6/internal/compare" 14 ) 15 16 // Tests bitwise operators 17 func TestMathLogicBitSuite(t *testing.T) { 18 suite.Run(t, new(MathLogicBitSuite)) 19 } 20 21 type MathLogicBitSuite struct { 22 suite.Suite 23 24 session *r.Session 25 } 26 27 func (suite *MathLogicBitSuite) SetupTest() { 28 suite.T().Log("Setting up MathLogicBitSuite") 29 // Use imports to prevent errors 30 _ = time.Time{} 31 _ = compare.AnythingIsFine 32 33 session, err := r.Connect(r.ConnectOpts{ 34 Address: url, 35 }) 36 suite.Require().NoError(err, "Error returned when connecting to server") 37 suite.session = session 38 39 r.DBDrop("test").Exec(suite.session) 40 err = r.DBCreate("test").Exec(suite.session) 41 suite.Require().NoError(err) 42 err = r.DB("test").Wait().Exec(suite.session) 43 suite.Require().NoError(err) 44 45 } 46 47 func (suite *MathLogicBitSuite) TearDownSuite() { 48 suite.T().Log("Tearing down MathLogicBitSuite") 49 50 if suite.session != nil { 51 r.DB("rethinkdb").Table("_debug_scratch").Delete().Exec(suite.session) 52 r.DBDrop("test").Exec(suite.session) 53 54 suite.session.Close() 55 } 56 } 57 58 func (suite *MathLogicBitSuite) TestCases() { 59 suite.T().Log("Running MathLogicBitSuite: Tests bitwise operators") 60 61 { 62 // math_logic/bit.yaml line #4 63 /* 2 */ 64 var expected_ int = 2 65 /* r.expr(3).bit_and(2) */ 66 67 suite.T().Log("About to run line #4: r.Expr(3).BitAnd(2)") 68 69 runAndAssert(suite.Suite, expected_, r.Expr(3).BitAnd(2), suite.session, r.RunOpts{ 70 GeometryFormat: "raw", 71 GroupFormat: "map", 72 }) 73 suite.T().Log("Finished running line #4") 74 } 75 76 { 77 // math_logic/bit.yaml line #7 78 /* 2 */ 79 var expected_ int = 2 80 /* r.expr(-2).bit_and(3) */ 81 82 suite.T().Log("About to run line #7: r.Expr(-2).BitAnd(3)") 83 84 runAndAssert(suite.Suite, expected_, r.Expr(-2).BitAnd(3), suite.session, r.RunOpts{ 85 GeometryFormat: "raw", 86 GroupFormat: "map", 87 }) 88 suite.T().Log("Finished running line #7") 89 } 90 91 { 92 // math_logic/bit.yaml line #10 93 /* err('ReqlQueryLogicError', 'Integer too large: 9007199254740992') */ 94 var expected_ Err = err("ReqlQueryLogicError", "Integer too large: 9007199254740992") 95 /* r.expr(9007199254740992).bit_and(0) */ 96 97 suite.T().Log("About to run line #10: r.Expr(9007199254740992).BitAnd(0)") 98 99 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740992).BitAnd(0), suite.session, r.RunOpts{ 100 GeometryFormat: "raw", 101 GroupFormat: "map", 102 }) 103 suite.T().Log("Finished running line #10") 104 } 105 106 { 107 // math_logic/bit.yaml line #13 108 /* err('ReqlQueryLogicError', 'Number not an integer (>2^53): 9007199254740994') */ 109 var expected_ Err = err("ReqlQueryLogicError", "Number not an integer (>2^53): 9007199254740994") 110 /* r.expr(9007199254740994).bit_and(0) */ 111 112 suite.T().Log("About to run line #13: r.Expr(9007199254740994).BitAnd(0)") 113 114 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740994).BitAnd(0), suite.session, r.RunOpts{ 115 GeometryFormat: "raw", 116 GroupFormat: "map", 117 }) 118 suite.T().Log("Finished running line #13") 119 } 120 121 { 122 // math_logic/bit.yaml line #16 123 /* 23 */ 124 var expected_ int = 23 125 /* r.expr(9007199254740991).bit_and(23) */ 126 127 suite.T().Log("About to run line #16: r.Expr(9007199254740991).BitAnd(23)") 128 129 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740991).BitAnd(23), suite.session, r.RunOpts{ 130 GeometryFormat: "raw", 131 GroupFormat: "map", 132 }) 133 suite.T().Log("Finished running line #16") 134 } 135 136 { 137 // math_logic/bit.yaml line #19 138 /* 0 */ 139 var expected_ int = 0 140 /* r.expr(-9007199254740992).bit_and(12345) */ 141 142 suite.T().Log("About to run line #19: r.Expr(-9007199254740992).BitAnd(12345)") 143 144 runAndAssert(suite.Suite, expected_, r.Expr(-9007199254740992).BitAnd(12345), suite.session, r.RunOpts{ 145 GeometryFormat: "raw", 146 GroupFormat: "map", 147 }) 148 suite.T().Log("Finished running line #19") 149 } 150 151 { 152 // math_logic/bit.yaml line #22 153 /* 3 */ 154 var expected_ int = 3 155 /* r.expr(1).bit_or(2) */ 156 157 suite.T().Log("About to run line #22: r.Expr(1).BitOr(2)") 158 159 runAndAssert(suite.Suite, expected_, r.Expr(1).BitOr(2), suite.session, r.RunOpts{ 160 GeometryFormat: "raw", 161 GroupFormat: "map", 162 }) 163 suite.T().Log("Finished running line #22") 164 } 165 166 { 167 // math_logic/bit.yaml line #25 168 /* err('ReqlQueryLogicError', 'Integer too large: 9007199254740992') */ 169 var expected_ Err = err("ReqlQueryLogicError", "Integer too large: 9007199254740992") 170 /* r.expr(9007199254740992).bit_or(0) */ 171 172 suite.T().Log("About to run line #25: r.Expr(9007199254740992).BitOr(0)") 173 174 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740992).BitOr(0), suite.session, r.RunOpts{ 175 GeometryFormat: "raw", 176 GroupFormat: "map", 177 }) 178 suite.T().Log("Finished running line #25") 179 } 180 181 { 182 // math_logic/bit.yaml line #28 183 /* 9007199254740991 */ 184 var expected_ int = 9007199254740991 185 /* r.expr(9007199254740991).bit_or(0) */ 186 187 suite.T().Log("About to run line #28: r.Expr(9007199254740991).BitOr(0)") 188 189 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740991).BitOr(0), suite.session, r.RunOpts{ 190 GeometryFormat: "raw", 191 GroupFormat: "map", 192 }) 193 suite.T().Log("Finished running line #28") 194 } 195 196 { 197 // math_logic/bit.yaml line #31 198 /* -1 */ 199 var expected_ int = -1 200 /* r.expr(9007199254740991).bit_or(-1) */ 201 202 suite.T().Log("About to run line #31: r.Expr(9007199254740991).BitOr(-1)") 203 204 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740991).BitOr(-1), suite.session, r.RunOpts{ 205 GeometryFormat: "raw", 206 GroupFormat: "map", 207 }) 208 suite.T().Log("Finished running line #31") 209 } 210 211 { 212 // math_logic/bit.yaml line #34 213 /* 5 */ 214 var expected_ int = 5 215 /* r.expr(3).bit_xor(6) */ 216 217 suite.T().Log("About to run line #34: r.Expr(3).BitXor(6)") 218 219 runAndAssert(suite.Suite, expected_, r.Expr(3).BitXor(6), suite.session, r.RunOpts{ 220 GeometryFormat: "raw", 221 GroupFormat: "map", 222 }) 223 suite.T().Log("Finished running line #34") 224 } 225 226 { 227 // math_logic/bit.yaml line #37 228 /* -3 */ 229 var expected_ int = -3 230 /* r.expr(2).bit_not() */ 231 232 suite.T().Log("About to run line #37: r.Expr(2).BitNot()") 233 234 runAndAssert(suite.Suite, expected_, r.Expr(2).BitNot(), suite.session, r.RunOpts{ 235 GeometryFormat: "raw", 236 GroupFormat: "map", 237 }) 238 suite.T().Log("Finished running line #37") 239 } 240 241 { 242 // math_logic/bit.yaml line #40 243 /* -9007199254740992 */ 244 var expected_ int = -9007199254740992 245 /* r.expr(9007199254740991).bit_not() */ 246 247 suite.T().Log("About to run line #40: r.Expr(9007199254740991).BitNot()") 248 249 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740991).BitNot(), suite.session, r.RunOpts{ 250 GeometryFormat: "raw", 251 GroupFormat: "map", 252 }) 253 suite.T().Log("Finished running line #40") 254 } 255 256 { 257 // math_logic/bit.yaml line #43 258 /* 9007199254740991 */ 259 var expected_ int = 9007199254740991 260 /* r.expr(9007199254740991).bit_not().bit_not() */ 261 262 suite.T().Log("About to run line #43: r.Expr(9007199254740991).BitNot().BitNot()") 263 264 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740991).BitNot().BitNot(), suite.session, r.RunOpts{ 265 GeometryFormat: "raw", 266 GroupFormat: "map", 267 }) 268 suite.T().Log("Finished running line #43") 269 } 270 271 { 272 // math_logic/bit.yaml line #47 273 /* err('ReqlQueryLogicError', 'Integer too large: 9007199254740992') */ 274 var expected_ Err = err("ReqlQueryLogicError", "Integer too large: 9007199254740992") 275 /* r.expr(9007199254740992).bit_sar(0) */ 276 277 suite.T().Log("About to run line #47: r.Expr(9007199254740992).BitSar(0)") 278 279 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740992).BitSar(0), suite.session, r.RunOpts{ 280 GeometryFormat: "raw", 281 GroupFormat: "map", 282 }) 283 suite.T().Log("Finished running line #47") 284 } 285 286 { 287 // math_logic/bit.yaml line #50 288 /* -9007199254740992 */ 289 var expected_ int = -9007199254740992 290 /* r.expr(-9007199254740992).bit_sar(0) */ 291 292 suite.T().Log("About to run line #50: r.Expr(-9007199254740992).BitSar(0)") 293 294 runAndAssert(suite.Suite, expected_, r.Expr(-9007199254740992).BitSar(0), suite.session, r.RunOpts{ 295 GeometryFormat: "raw", 296 GroupFormat: "map", 297 }) 298 suite.T().Log("Finished running line #50") 299 } 300 301 { 302 // math_logic/bit.yaml line #53 303 /* -4503599627370496 */ 304 var expected_ int = -4503599627370496 305 /* r.expr(-9007199254740992).bit_sar(1) */ 306 307 suite.T().Log("About to run line #53: r.Expr(-9007199254740992).BitSar(1)") 308 309 runAndAssert(suite.Suite, expected_, r.Expr(-9007199254740992).BitSar(1), suite.session, r.RunOpts{ 310 GeometryFormat: "raw", 311 GroupFormat: "map", 312 }) 313 suite.T().Log("Finished running line #53") 314 } 315 316 { 317 // math_logic/bit.yaml line #56 318 /* -2 */ 319 var expected_ int = -2 320 /* r.expr(-9007199254740992).bit_sar(52) */ 321 322 suite.T().Log("About to run line #56: r.Expr(-9007199254740992).BitSar(52)") 323 324 runAndAssert(suite.Suite, expected_, r.Expr(-9007199254740992).BitSar(52), suite.session, r.RunOpts{ 325 GeometryFormat: "raw", 326 GroupFormat: "map", 327 }) 328 suite.T().Log("Finished running line #56") 329 } 330 331 { 332 // math_logic/bit.yaml line #59 333 /* -1 */ 334 var expected_ int = -1 335 /* r.expr(-9007199254740992).bit_sar(53) */ 336 337 suite.T().Log("About to run line #59: r.Expr(-9007199254740992).BitSar(53)") 338 339 runAndAssert(suite.Suite, expected_, r.Expr(-9007199254740992).BitSar(53), suite.session, r.RunOpts{ 340 GeometryFormat: "raw", 341 GroupFormat: "map", 342 }) 343 suite.T().Log("Finished running line #59") 344 } 345 346 { 347 // math_logic/bit.yaml line #62 348 /* -1 */ 349 var expected_ int = -1 350 /* r.expr(-9007199254740992).bit_sar(54) */ 351 352 suite.T().Log("About to run line #62: r.Expr(-9007199254740992).BitSar(54)") 353 354 runAndAssert(suite.Suite, expected_, r.Expr(-9007199254740992).BitSar(54), suite.session, r.RunOpts{ 355 GeometryFormat: "raw", 356 GroupFormat: "map", 357 }) 358 suite.T().Log("Finished running line #62") 359 } 360 361 { 362 // math_logic/bit.yaml line #65 363 /* 9007199254740991 */ 364 var expected_ int = 9007199254740991 365 /* r.expr(9007199254740991).bit_sar(0) */ 366 367 suite.T().Log("About to run line #65: r.Expr(9007199254740991).BitSar(0)") 368 369 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740991).BitSar(0), suite.session, r.RunOpts{ 370 GeometryFormat: "raw", 371 GroupFormat: "map", 372 }) 373 suite.T().Log("Finished running line #65") 374 } 375 376 { 377 // math_logic/bit.yaml line #68 378 /* 4503599627370495 */ 379 var expected_ int = 4503599627370495 380 /* r.expr(9007199254740991).bit_sar(1) */ 381 382 suite.T().Log("About to run line #68: r.Expr(9007199254740991).BitSar(1)") 383 384 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740991).BitSar(1), suite.session, r.RunOpts{ 385 GeometryFormat: "raw", 386 GroupFormat: "map", 387 }) 388 suite.T().Log("Finished running line #68") 389 } 390 391 { 392 // math_logic/bit.yaml line #71 393 /* 1 */ 394 var expected_ int = 1 395 /* r.expr(9007199254740991).bit_sar(52) */ 396 397 suite.T().Log("About to run line #71: r.Expr(9007199254740991).BitSar(52)") 398 399 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740991).BitSar(52), suite.session, r.RunOpts{ 400 GeometryFormat: "raw", 401 GroupFormat: "map", 402 }) 403 suite.T().Log("Finished running line #71") 404 } 405 406 { 407 // math_logic/bit.yaml line #74 408 /* 0 */ 409 var expected_ int = 0 410 /* r.expr(9007199254740991).bit_sar(53) */ 411 412 suite.T().Log("About to run line #74: r.Expr(9007199254740991).BitSar(53)") 413 414 runAndAssert(suite.Suite, expected_, r.Expr(9007199254740991).BitSar(53), suite.session, r.RunOpts{ 415 GeometryFormat: "raw", 416 GroupFormat: "map", 417 }) 418 suite.T().Log("Finished running line #74") 419 } 420 421 { 422 // math_logic/bit.yaml line #78 423 /* 0 */ 424 var expected_ int = 0 425 /* r.expr(0).bit_sal(999999) */ 426 427 suite.T().Log("About to run line #78: r.Expr(0).BitSal(999999)") 428 429 runAndAssert(suite.Suite, expected_, r.Expr(0).BitSal(999999), suite.session, r.RunOpts{ 430 GeometryFormat: "raw", 431 GroupFormat: "map", 432 }) 433 suite.T().Log("Finished running line #78") 434 } 435 436 { 437 // math_logic/bit.yaml line #81 438 /* 0 */ 439 var expected_ int = 0 440 /* r.expr(0).bit_sal(3000) */ 441 442 suite.T().Log("About to run line #81: r.Expr(0).BitSal(3000)") 443 444 runAndAssert(suite.Suite, expected_, r.Expr(0).BitSal(3000), suite.session, r.RunOpts{ 445 GeometryFormat: "raw", 446 GroupFormat: "map", 447 }) 448 suite.T().Log("Finished running line #81") 449 } 450 451 { 452 // math_logic/bit.yaml line #84 453 /* 0 */ 454 var expected_ int = 0 455 /* r.expr(0).bit_sal(500) */ 456 457 suite.T().Log("About to run line #84: r.Expr(0).BitSal(500)") 458 459 runAndAssert(suite.Suite, expected_, r.Expr(0).BitSal(500), suite.session, r.RunOpts{ 460 GeometryFormat: "raw", 461 GroupFormat: "map", 462 }) 463 suite.T().Log("Finished running line #84") 464 } 465 466 { 467 // math_logic/bit.yaml line #87 468 /* 0 */ 469 var expected_ int = 0 470 /* r.expr(0).bit_sal(0) */ 471 472 suite.T().Log("About to run line #87: r.Expr(0).BitSal(0)") 473 474 runAndAssert(suite.Suite, expected_, r.Expr(0).BitSal(0), suite.session, r.RunOpts{ 475 GeometryFormat: "raw", 476 GroupFormat: "map", 477 }) 478 suite.T().Log("Finished running line #87") 479 } 480 481 { 482 // math_logic/bit.yaml line #90 483 /* 1 */ 484 var expected_ int = 1 485 /* r.expr(1).bit_sal(0) */ 486 487 suite.T().Log("About to run line #90: r.Expr(1).BitSal(0)") 488 489 runAndAssert(suite.Suite, expected_, r.Expr(1).BitSal(0), suite.session, r.RunOpts{ 490 GeometryFormat: "raw", 491 GroupFormat: "map", 492 }) 493 suite.T().Log("Finished running line #90") 494 } 495 496 { 497 // math_logic/bit.yaml line #93 498 /* 2 */ 499 var expected_ int = 2 500 /* r.expr(1).bit_sal(1) */ 501 502 suite.T().Log("About to run line #93: r.Expr(1).BitSal(1)") 503 504 runAndAssert(suite.Suite, expected_, r.Expr(1).BitSal(1), suite.session, r.RunOpts{ 505 GeometryFormat: "raw", 506 GroupFormat: "map", 507 }) 508 suite.T().Log("Finished running line #93") 509 } 510 511 { 512 // math_logic/bit.yaml line #96 513 /* 8 */ 514 var expected_ int = 8 515 /* r.expr(1).bit_sal(3) */ 516 517 suite.T().Log("About to run line #96: r.Expr(1).BitSal(3)") 518 519 runAndAssert(suite.Suite, expected_, r.Expr(1).BitSal(3), suite.session, r.RunOpts{ 520 GeometryFormat: "raw", 521 GroupFormat: "map", 522 }) 523 suite.T().Log("Finished running line #96") 524 } 525 526 { 527 // math_logic/bit.yaml line #99 528 /* -8 */ 529 var expected_ int = -8 530 /* r.expr(-1).bit_sal(3) */ 531 532 suite.T().Log("About to run line #99: r.Expr(-1).BitSal(3)") 533 534 runAndAssert(suite.Suite, expected_, r.Expr(-1).BitSal(3), suite.session, r.RunOpts{ 535 GeometryFormat: "raw", 536 GroupFormat: "map", 537 }) 538 suite.T().Log("Finished running line #99") 539 } 540 541 { 542 // math_logic/bit.yaml line #102 543 /* -18014398509481984 */ 544 var expected_ int = -18014398509481984 545 /* r.expr(-1).bit_sal(54) */ 546 547 suite.T().Log("About to run line #102: r.Expr(-1).BitSal(54)") 548 549 runAndAssert(suite.Suite, expected_, r.Expr(-1).BitSal(54), suite.session, r.RunOpts{ 550 GeometryFormat: "raw", 551 GroupFormat: "map", 552 }) 553 suite.T().Log("Finished running line #102") 554 } 555 556 { 557 // math_logic/bit.yaml line #105 558 /* 18014398509481984 */ 559 var expected_ int = 18014398509481984 560 /* r.expr(1).bit_sal(54) */ 561 562 suite.T().Log("About to run line #105: r.Expr(1).BitSal(54)") 563 564 runAndAssert(suite.Suite, expected_, r.Expr(1).BitSal(54), suite.session, r.RunOpts{ 565 GeometryFormat: "raw", 566 GroupFormat: "map", 567 }) 568 suite.T().Log("Finished running line #105") 569 } 570 571 { 572 // math_logic/bit.yaml line #108 573 /* -18014398509481984 */ 574 var expected_ int = -18014398509481984 575 /* r.expr(-2).bit_sal(53) */ 576 577 suite.T().Log("About to run line #108: r.Expr(-2).BitSal(53)") 578 579 runAndAssert(suite.Suite, expected_, r.Expr(-2).BitSal(53), suite.session, r.RunOpts{ 580 GeometryFormat: "raw", 581 GroupFormat: "map", 582 }) 583 suite.T().Log("Finished running line #108") 584 } 585 586 { 587 // math_logic/bit.yaml line #111 588 /* 18014398509481984 */ 589 var expected_ int = 18014398509481984 590 /* r.expr(2).bit_sal(53) */ 591 592 suite.T().Log("About to run line #111: r.Expr(2).BitSal(53)") 593 594 runAndAssert(suite.Suite, expected_, r.Expr(2).BitSal(53), suite.session, r.RunOpts{ 595 GeometryFormat: "raw", 596 GroupFormat: "map", 597 }) 598 suite.T().Log("Finished running line #111") 599 } 600 601 { 602 // math_logic/bit.yaml line #114 603 /* err('ReqlQueryLogicError', 'Cannot bit-shift by a negative value') */ 604 var expected_ Err = err("ReqlQueryLogicError", "Cannot bit-shift by a negative value") 605 /* r.expr(5).bit_sal(-1) */ 606 607 suite.T().Log("About to run line #114: r.Expr(5).BitSal(-1)") 608 609 runAndAssert(suite.Suite, expected_, r.Expr(5).BitSal(-1), suite.session, r.RunOpts{ 610 GeometryFormat: "raw", 611 GroupFormat: "map", 612 }) 613 suite.T().Log("Finished running line #114") 614 } 615 616 { 617 // math_logic/bit.yaml line #117 618 /* err('ReqlQueryLogicError', 'Cannot bit-shift by a negative value') */ 619 var expected_ Err = err("ReqlQueryLogicError", "Cannot bit-shift by a negative value") 620 /* r.expr(5).bit_sar(-1) */ 621 622 suite.T().Log("About to run line #117: r.Expr(5).BitSar(-1)") 623 624 runAndAssert(suite.Suite, expected_, r.Expr(5).BitSar(-1), suite.session, r.RunOpts{ 625 GeometryFormat: "raw", 626 GroupFormat: "map", 627 }) 628 suite.T().Log("Finished running line #117") 629 } 630 631 { 632 // math_logic/bit.yaml line #121 633 /* err('ReqlQueryLogicError', 'Expected type NUMBER but found STRING.', [0]) */ 634 var expected_ Err = err("ReqlQueryLogicError", "Expected type NUMBER but found STRING.") 635 /* r.expr('a').bit_and(12) */ 636 637 suite.T().Log("About to run line #121: r.Expr('a').BitAnd(12)") 638 639 runAndAssert(suite.Suite, expected_, r.Expr("a").BitAnd(12), suite.session, r.RunOpts{ 640 GeometryFormat: "raw", 641 GroupFormat: "map", 642 }) 643 suite.T().Log("Finished running line #121") 644 } 645 646 { 647 // math_logic/bit.yaml line #124 648 /* err('ReqlQueryLogicError', 'Expected type NUMBER but found STRING.', [1]) */ 649 var expected_ Err = err("ReqlQueryLogicError", "Expected type NUMBER but found STRING.") 650 /* r.expr(12).bit_and('a') */ 651 652 suite.T().Log("About to run line #124: r.Expr(12).BitAnd('a')") 653 654 runAndAssert(suite.Suite, expected_, r.Expr(12).BitAnd("a"), suite.session, r.RunOpts{ 655 GeometryFormat: "raw", 656 GroupFormat: "map", 657 }) 658 suite.T().Log("Finished running line #124") 659 } 660 661 { 662 // math_logic/bit.yaml line #127 663 /* err('ReqlQueryLogicError', 'Number not an integer: 1.5') */ 664 var expected_ Err = err("ReqlQueryLogicError", "Number not an integer: 1.5") 665 /* r.expr(1.5).bit_and(3) */ 666 667 suite.T().Log("About to run line #127: r.Expr(1.5).BitAnd(3)") 668 669 runAndAssert(suite.Suite, expected_, r.Expr(1.5).BitAnd(3), suite.session, r.RunOpts{ 670 GeometryFormat: "raw", 671 GroupFormat: "map", 672 }) 673 suite.T().Log("Finished running line #127") 674 } 675 }