@@ -422,29 +422,29 @@ TEST_F(SensingBlocksTest, TouchingColorImpl)
422422 vm.setFunctions (functions);
423423 vm.setConstValues (constValues);
424424
425- EXPECT_CALL (target, touchingColor (constValues[0 ])).WillOnce (Return (false ));
425+ EXPECT_CALL (target, touchingColor (constValues[0 ]. toRgba () )).WillOnce (Return (false ));
426426 vm.setBytecode (bytecode1);
427427 vm.run ();
428428
429429 ASSERT_EQ (vm.registerCount (), 1 );
430430 ASSERT_FALSE (vm.getInput (0 , 1 )->toBool ());
431431
432- EXPECT_CALL (target, touchingColor (constValues[0 ])).WillOnce (Return (true ));
432+ EXPECT_CALL (target, touchingColor (constValues[0 ]. toRgba () )).WillOnce (Return (true ));
433433 vm.reset ();
434434 vm.run ();
435435
436436 ASSERT_EQ (vm.registerCount (), 1 );
437437 ASSERT_TRUE (vm.getInput (0 , 1 )->toBool ());
438438
439- EXPECT_CALL (target, touchingColor (constValues[1 ])).WillOnce (Return (false ));
439+ EXPECT_CALL (target, touchingColor (constValues[1 ]. toRgba () )).WillOnce (Return (false ));
440440 vm.reset ();
441441 vm.setBytecode (bytecode2);
442442 vm.run ();
443443
444444 ASSERT_EQ (vm.registerCount (), 1 );
445445 ASSERT_FALSE (vm.getInput (0 , 1 )->toBool ());
446446
447- EXPECT_CALL (target, touchingColor (constValues[1 ])).WillOnce (Return (true ));
447+ EXPECT_CALL (target, touchingColor (constValues[1 ]. toRgba () )).WillOnce (Return (true ));
448448 vm.reset ();
449449 vm.run ();
450450
@@ -495,29 +495,29 @@ TEST_F(SensingBlocksTest, ColorIsTouchingColorImpl)
495495 vm.setFunctions (functions);
496496 vm.setConstValues (constValues);
497497
498- EXPECT_CALL (target, touchingColor (constValues[0 ], constValues[1 ])).WillOnce (Return (false ));
498+ EXPECT_CALL (target, touchingColor (constValues[0 ]. toRgba () , constValues[1 ]. toRgba () )).WillOnce (Return (false ));
499499 vm.setBytecode (bytecode1);
500500 vm.run ();
501501
502502 ASSERT_EQ (vm.registerCount (), 1 );
503503 ASSERT_FALSE (vm.getInput (0 , 1 )->toBool ());
504504
505- EXPECT_CALL (target, touchingColor (constValues[0 ], constValues[1 ])).WillOnce (Return (true ));
505+ EXPECT_CALL (target, touchingColor (constValues[0 ]. toRgba () , constValues[1 ]. toRgba () )).WillOnce (Return (true ));
506506 vm.reset ();
507507 vm.run ();
508508
509509 ASSERT_EQ (vm.registerCount (), 1 );
510510 ASSERT_TRUE (vm.getInput (0 , 1 )->toBool ());
511511
512- EXPECT_CALL (target, touchingColor (constValues[2 ], constValues[3 ])).WillOnce (Return (false ));
512+ EXPECT_CALL (target, touchingColor (constValues[2 ]. toRgba () , constValues[3 ]. toRgba () )).WillOnce (Return (false ));
513513 vm.reset ();
514514 vm.setBytecode (bytecode2);
515515 vm.run ();
516516
517517 ASSERT_EQ (vm.registerCount (), 1 );
518518 ASSERT_FALSE (vm.getInput (0 , 1 )->toBool ());
519519
520- EXPECT_CALL (target, touchingColor (constValues[2 ], constValues[3 ])).WillOnce (Return (true ));
520+ EXPECT_CALL (target, touchingColor (constValues[2 ]. toRgba () , constValues[3 ]. toRgba () )).WillOnce (Return (true ));
521521 vm.reset ();
522522 vm.run ();
523523
0 commit comments