Kaydet (Commit) ea9ece87 authored tarafından Damjan Jovanovic's avatar Damjan Jovanovic

Fix a unit test that doesn't compile on MacOS, breaking the build.

Found-by: Pathangi Janardhanan Jatinshravan <JATINSHR001 at e dot ntu dot edu dot sg>
Patch-by: Pathangi Janardhanan Jatinshravan <JATINSHR001 at e dot ntu dot edu dot sg>
üst 64b3c5d3
...@@ -92,7 +92,7 @@ TEST_F(BasicTest, testConstruction) ...@@ -92,7 +92,7 @@ TEST_F(BasicTest, testConstruction)
ASSERT_TRUE( pDevice->isTopDown() == true ) << "Top down format"; ASSERT_TRUE( pDevice->isTopDown() == true ) << "Top down format";
ASSERT_TRUE( pDevice->getScanlineFormat() == Format::ONE_BIT_MSB_PAL ) << "Scanline format"; ASSERT_TRUE( pDevice->getScanlineFormat() == Format::ONE_BIT_MSB_PAL ) << "Scanline format";
ASSERT_TRUE( pDevice->getScanlineStride() == (aSize2.getY() + 7)/8 ) << "Scanline len"; ASSERT_TRUE( pDevice->getScanlineStride() == (aSize2.getY() + 7)/8 ) << "Scanline len";
ASSERT_TRUE( pDevice->getPalette() ) << "Palette existence"; ASSERT_TRUE( pDevice->getPalette() != NULL ) << "Palette existence";
ASSERT_TRUE( (*pDevice->getPalette())[0] == Color(0) ) << "Palette entry 0 is black"; ASSERT_TRUE( (*pDevice->getPalette())[0] == Color(0) ) << "Palette entry 0 is black";
ASSERT_TRUE( (*pDevice->getPalette())[1] == Color(0xFFFFFFFF) ) << "Palette entry 1 is white"; ASSERT_TRUE( (*pDevice->getPalette())[1] == Color(0xFFFFFFFF) ) << "Palette entry 1 is white";
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment