Fix tests to match reality.
authorCarl Hetherington <cth@carlh.net>
Tue, 30 Jun 2015 08:25:28 +0000 (09:25 +0100)
committerCarl Hetherington <cth@carlh.net>
Tue, 30 Jun 2015 08:25:28 +0000 (09:25 +0100)
test/colour_conversion_test.cc

index b743497bfc27bcd9f7bc3b5666464322b6e71236..b963217d5081b876788197bc5b98b3830acbcfcf 100644 (file)
@@ -73,9 +73,9 @@ BOOST_AUTO_TEST_CASE (colour_conversion_test2)
 {
        ColourConversion cc = ColourConversion::rec709_to_xyz ();
 
-       check_modified_gamma (cc.in(), 8, false, 1 / 0.45, 0.081, 0.099, 4.5);
-       check_modified_gamma (cc.in(), 12, false, 1 / 0.45, 0.081, 0.099, 4.5);
-       check_modified_gamma (cc.in(), 16, false, 1 / 0.45, 0.081, 0.099, 4.5);
+       check_gamma (cc.in(), 8, false, 2.2);
+       check_gamma (cc.in(), 12, false, 2.2);
+       check_gamma (cc.in(), 16, false, 2.2);
 
        check_gamma (cc.out(), 8, true, 1 / 2.6);
        check_gamma (cc.out(), 12, true, 1 / 2.6);