@@ -604,7 +604,16 @@ class TestFunctions : public TestFixture {
604604 " std::cout << log1pf(-3) << std::endl;\n "
605605 " std::cout << log1pl(-3) << std::endl;\n "
606606 " }" );
607- ASSERT_EQUALS (" [test.cpp:3]: (warning) Passing value -2 to log() leads to implementation-defined result.\n "
607+ ASSERT_EQUALS (" [test.cpp:3]: (error) Invalid log() argument nr 1. The value is -2 but the valid values are '4.94066e-324:'.\n "
608+ " [test.cpp:4]: (error) Invalid logf() argument nr 1. The value is -2 but the valid values are '1.4013e-45:'.\n "
609+ " [test.cpp:5]: (error) Invalid logl() argument nr 1. The value is -2 but the valid values are '4.94066e-324:'.\n "
610+ " [test.cpp:6]: (error) Invalid log10() argument nr 1. The value is -2 but the valid values are '4.94066e-324:'.\n "
611+ " [test.cpp:7]: (error) Invalid log10f() argument nr 1. The value is -2 but the valid values are '1.4013e-45:'.\n "
612+ " [test.cpp:8]: (error) Invalid log10l() argument nr 1. The value is -2 but the valid values are '4.94066e-324:'.\n "
613+ " [test.cpp:9]: (error) Invalid log2() argument nr 1. The value is -2 but the valid values are '4.94066e-324:'.\n "
614+ " [test.cpp:10]: (error) Invalid log2f() argument nr 1. The value is -2 but the valid values are '1.4013e-45:'.\n "
615+ " [test.cpp:11]: (error) Invalid log2l() argument nr 1. The value is -2 but the valid values are '4.94066e-324:'.\n "
616+ " [test.cpp:3]: (warning) Passing value -2 to log() leads to implementation-defined result.\n "
608617 " [test.cpp:4]: (warning) Passing value -2 to logf() leads to implementation-defined result.\n "
609618 " [test.cpp:5]: (warning) Passing value -2 to logl() leads to implementation-defined result.\n "
610619 " [test.cpp:6]: (warning) Passing value -2 to log10() leads to implementation-defined result.\n "
@@ -632,7 +641,16 @@ class TestFunctions : public TestFixture {
632641 " std::cout << log1pf(-2) << std::endl;\n "
633642 " std::cout << log1pl(-2) << std::endl;\n "
634643 " }" );
635- ASSERT_EQUALS (" [test.cpp:3]: (warning) Passing value -1 to log() leads to implementation-defined result.\n "
644+ ASSERT_EQUALS (" [test.cpp:3]: (error) Invalid log() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
645+ " [test.cpp:4]: (error) Invalid logf() argument nr 1. The value is -1 but the valid values are '1.4013e-45:'.\n "
646+ " [test.cpp:5]: (error) Invalid logl() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
647+ " [test.cpp:6]: (error) Invalid log10() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
648+ " [test.cpp:7]: (error) Invalid log10f() argument nr 1. The value is -1 but the valid values are '1.4013e-45:'.\n "
649+ " [test.cpp:8]: (error) Invalid log10l() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
650+ " [test.cpp:9]: (error) Invalid log2() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
651+ " [test.cpp:10]: (error) Invalid log2f() argument nr 1. The value is -1 but the valid values are '1.4013e-45:'.\n "
652+ " [test.cpp:11]: (error) Invalid log2l() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
653+ " [test.cpp:3]: (warning) Passing value -1 to log() leads to implementation-defined result.\n "
636654 " [test.cpp:4]: (warning) Passing value -1 to logf() leads to implementation-defined result.\n "
637655 " [test.cpp:5]: (warning) Passing value -1 to logl() leads to implementation-defined result.\n "
638656 " [test.cpp:6]: (warning) Passing value -1 to log10() leads to implementation-defined result.\n "
@@ -660,7 +678,16 @@ class TestFunctions : public TestFixture {
660678 " std::cout << log1pf(-2.0) << std::endl;\n "
661679 " std::cout << log1pl(-2.0) << std::endl;\n "
662680 " }" );
663- ASSERT_EQUALS (" [test.cpp:3]: (warning) Passing value -1.0 to log() leads to implementation-defined result.\n "
681+ ASSERT_EQUALS (" [test.cpp:3]: (error) Invalid log() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
682+ " [test.cpp:4]: (error) Invalid logf() argument nr 1. The value is -1 but the valid values are '1.4013e-45:'.\n "
683+ " [test.cpp:5]: (error) Invalid logl() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
684+ " [test.cpp:6]: (error) Invalid log10() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
685+ " [test.cpp:7]: (error) Invalid log10f() argument nr 1. The value is -1 but the valid values are '1.4013e-45:'.\n "
686+ " [test.cpp:8]: (error) Invalid log10l() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
687+ " [test.cpp:9]: (error) Invalid log2() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
688+ " [test.cpp:10]: (error) Invalid log2f() argument nr 1. The value is -1 but the valid values are '1.4013e-45:'.\n "
689+ " [test.cpp:11]: (error) Invalid log2l() argument nr 1. The value is -1 but the valid values are '4.94066e-324:'.\n "
690+ " [test.cpp:3]: (warning) Passing value -1.0 to log() leads to implementation-defined result.\n "
664691 " [test.cpp:4]: (warning) Passing value -1.0 to logf() leads to implementation-defined result.\n "
665692 " [test.cpp:5]: (warning) Passing value -1.0 to logl() leads to implementation-defined result.\n "
666693 " [test.cpp:6]: (warning) Passing value -1.0 to log10() leads to implementation-defined result.\n "
@@ -688,7 +715,16 @@ class TestFunctions : public TestFixture {
688715 " std::cout << log1pf(-1.1) << std::endl;\n "
689716 " std::cout << log1pl(-1.1) << std::endl;\n "
690717 " }" );
691- ASSERT_EQUALS (" [test.cpp:3]: (warning) Passing value -0.1 to log() leads to implementation-defined result.\n "
718+ ASSERT_EQUALS (" [test.cpp:3]: (error) Invalid log() argument nr 1. The value is -0.1 but the valid values are '4.94066e-324:'.\n "
719+ " [test.cpp:4]: (error) Invalid logf() argument nr 1. The value is -0.1 but the valid values are '1.4013e-45:'.\n "
720+ " [test.cpp:5]: (error) Invalid logl() argument nr 1. The value is -0.1 but the valid values are '4.94066e-324:'.\n "
721+ " [test.cpp:6]: (error) Invalid log10() argument nr 1. The value is -0.1 but the valid values are '4.94066e-324:'.\n "
722+ " [test.cpp:7]: (error) Invalid log10f() argument nr 1. The value is -0.1 but the valid values are '1.4013e-45:'.\n "
723+ " [test.cpp:8]: (error) Invalid log10l() argument nr 1. The value is -0.1 but the valid values are '4.94066e-324:'.\n "
724+ " [test.cpp:9]: (error) Invalid log2() argument nr 1. The value is -0.1 but the valid values are '4.94066e-324:'.\n "
725+ " [test.cpp:10]: (error) Invalid log2f() argument nr 1. The value is -0.1 but the valid values are '1.4013e-45:'.\n "
726+ " [test.cpp:11]: (error) Invalid log2l() argument nr 1. The value is -0.1 but the valid values are '4.94066e-324:'.\n "
727+ " [test.cpp:3]: (warning) Passing value -0.1 to log() leads to implementation-defined result.\n "
692728 " [test.cpp:4]: (warning) Passing value -0.1 to logf() leads to implementation-defined result.\n "
693729 " [test.cpp:5]: (warning) Passing value -0.1 to logl() leads to implementation-defined result.\n "
694730 " [test.cpp:6]: (warning) Passing value -0.1 to log10() leads to implementation-defined result.\n "
@@ -716,7 +752,16 @@ class TestFunctions : public TestFixture {
716752 " std::cout << log1pf(-1.0) << std::endl;\n "
717753 " std::cout << log1pl(-1) << std::endl;\n "
718754 " }" );
719- ASSERT_EQUALS (" [test.cpp:3]: (warning) Passing value 0 to log() leads to implementation-defined result.\n "
755+ ASSERT_EQUALS (" [test.cpp:3]: (error) Invalid log() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'.\n "
756+ " [test.cpp:4]: (error) Invalid logf() argument nr 1. The value is 0 but the valid values are '1.4013e-45:'.\n "
757+ " [test.cpp:5]: (error) Invalid logl() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'.\n "
758+ " [test.cpp:6]: (error) Invalid log10() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'.\n "
759+ " [test.cpp:7]: (error) Invalid log10f() argument nr 1. The value is 0 but the valid values are '1.4013e-45:'.\n "
760+ " [test.cpp:8]: (error) Invalid log10l() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'.\n "
761+ " [test.cpp:9]: (error) Invalid log2() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'.\n "
762+ " [test.cpp:10]: (error) Invalid log2f() argument nr 1. The value is 0 but the valid values are '1.4013e-45:'.\n "
763+ " [test.cpp:11]: (error) Invalid log2l() argument nr 1. The value is 0 but the valid values are '4.94066e-324:'.\n "
764+ " [test.cpp:3]: (warning) Passing value 0 to log() leads to implementation-defined result.\n "
720765 " [test.cpp:4]: (warning) Passing value 0. to logf() leads to implementation-defined result.\n "
721766 " [test.cpp:5]: (warning) Passing value 0.0 to logl() leads to implementation-defined result.\n "
722767 " [test.cpp:6]: (warning) Passing value 0.0 to log10() leads to implementation-defined result.\n "
0 commit comments