@@ -394,12 +394,12 @@ TEST_F(RenderedTargetTest, CpuRendering)
394
394
ASSERT_TRUE (target.contains ({ 1 , 2 }));
395
395
ASSERT_FALSE (target.contains ({ 2 , 2 }));
396
396
ASSERT_TRUE (target.contains ({ 3 , 2 }));
397
- ASSERT_FALSE (target.contains ({ 3.5 , 2.1 }));
397
+ ASSERT_TRUE (target.contains ({ 3.5 , 2.1 }));
398
398
399
399
ASSERT_TRUE (target.contains ({ 1 , 3 }));
400
400
ASSERT_TRUE (target.contains ({ 2 , 3 }));
401
401
ASSERT_TRUE (target.contains ({ 3 , 3 }));
402
- ASSERT_FALSE (target.contains ({ 3.3 , 3.5 }));
402
+ ASSERT_TRUE (target.contains ({ 3.3 , 3.5 }));
403
403
404
404
// Test contains() with horizontal mirroring
405
405
target.updateRotationStyle (Sprite::RotationStyle::LeftRight);
@@ -408,9 +408,9 @@ TEST_F(RenderedTargetTest, CpuRendering)
408
408
ASSERT_TRUE (target.contains ({ -1 , 1 }));
409
409
ASSERT_FALSE (target.contains ({ -2 , 2 }));
410
410
ASSERT_TRUE (target.contains ({ -3 , 2 }));
411
- ASSERT_FALSE (target.contains ({ -3.5 , 2.1 }));
411
+ ASSERT_TRUE (target.contains ({ -3.5 , 2.1 }));
412
412
ASSERT_TRUE (target.contains ({ -2 , 3 }));
413
- ASSERT_FALSE (target.contains ({ -3.3 , 3.5 }));
413
+ ASSERT_TRUE (target.contains ({ -3.3 , 3.5 }));
414
414
415
415
// Test containsScratchPoint()
416
416
target.updateDirection (0 );
@@ -425,15 +425,15 @@ TEST_F(RenderedTargetTest, CpuRendering)
425
425
ASSERT_TRUE (target.containsScratchPoint (-226 , 164 )); // [2, 1]
426
426
ASSERT_TRUE (target.containsScratchPoint (-225 , 164 )); // [3, 1]
427
427
428
- ASSERT_TRUE (target.containsScratchPoint (-227 , 163 )); // [1, 2]
429
- ASSERT_FALSE (target.containsScratchPoint (-226 , 163 )); // [2, 2]
430
- ASSERT_TRUE (target.containsScratchPoint (-225 , 163 )); // [3, 2]
431
- ASSERT_FALSE (target.containsScratchPoint (-224.5 , 162.9 )); // [3.5, 2.1]
428
+ ASSERT_TRUE (target.containsScratchPoint (-227 , 163 )); // [1, 2]
429
+ ASSERT_FALSE (target.containsScratchPoint (-226 , 163 )); // [2, 2]
430
+ ASSERT_TRUE (target.containsScratchPoint (-225 , 163 )); // [3, 2]
431
+ ASSERT_TRUE (target.containsScratchPoint (-224.5 , 162.9 )); // [3.5, 2.1]
432
432
433
- ASSERT_TRUE (target.containsScratchPoint (-227 , 162 )); // [1, 3]
434
- ASSERT_TRUE (target.containsScratchPoint (-226 , 162 )); // [2, 3]
435
- ASSERT_TRUE (target.containsScratchPoint (-225 , 162 )); // [3, 3]
436
- ASSERT_FALSE (target.containsScratchPoint (-224.7 , 161.5 )); // [3.3, 3.5]
433
+ ASSERT_TRUE (target.containsScratchPoint (-227 , 162 )); // [1, 3]
434
+ ASSERT_TRUE (target.containsScratchPoint (-226 , 162 )); // [2, 3]
435
+ ASSERT_TRUE (target.containsScratchPoint (-225 , 162 )); // [3, 3]
436
+ ASSERT_TRUE (target.containsScratchPoint (-224.7 , 161.5 )); // [3.3, 3.5]
437
437
438
438
// Test colorAtScratchPoint()
439
439
ASSERT_EQ (target.colorAtScratchPoint (-228 , 165 ), 0 ); // [0, 0]
0 commit comments