IUTEST_TYPED_TEST(StrCaseTest, Raw) { const TypeParam* p = TestFixture::Text::test; IUTEST_ASSERT_STRCASEEQ(TestFixture::Text::test, p); IUTEST_EXPECT_STRCASEEQ(TestFixture::Text::test, p); IUTEST_INFORM_STRCASEEQ(TestFixture::Text::test, p); IUTEST_ASSERT_STRCASEEQ(TestFixture::Text::Test, p); IUTEST_EXPECT_STRCASEEQ(TestFixture::Text::Test, p); IUTEST_INFORM_STRCASEEQ(TestFixture::Text::Test, p); IUTEST_ASSERT_STRCASENE(TestFixture::Text::host, p); IUTEST_EXPECT_STRCASENE(TestFixture::Text::host, p); IUTEST_INFORM_STRCASENE(TestFixture::Text::host, p); }
IUTEST(SyntaxTest, StrCaseEq) { const char test[] = "Test"; if( const char* p = "test" ) IUTEST_ASSERT_STRCASEEQ(p, test) << p; if( const char* p = "test" ) IUTEST_EXPECT_STRCASEEQ(p, test) << p; if( const char* p = "test" ) IUTEST_INFORM_STRCASEEQ(p, test) << p; if( const char* p = "test" ) IUTEST_ASSUME_STRCASEEQ(p, test) << p; }
IUTEST_TYPED_TEST(StrCaseTest, Null) { TypeParam* p=NULL; IUTEST_ASSERT_STRCASEEQ(NULL, p); IUTEST_EXPECT_STRCASEEQ(NULL, p); IUTEST_INFORM_STRCASEEQ(NULL, p); IUTEST_ASSERT_STRCASENE(TestFixture::Text::test, NULL); IUTEST_EXPECT_STRCASENE(TestFixture::Text::test, NULL); IUTEST_INFORM_STRCASENE(TestFixture::Text::test, NULL); IUTEST_ASSERT_STRCASENE(NULL, TestFixture::Text::test); IUTEST_EXPECT_STRCASENE(NULL, TestFixture::Text::test); IUTEST_INFORM_STRCASENE(NULL, TestFixture::Text::test); }
IUTEST_TYPED_TEST(StrCaseTest, String) { typename TestFixture::String test1 = TestFixture::Text::test; typename TestFixture::String test2 = TestFixture::Text::test; IUTEST_ASSERT_STRCASEEQ(test1, TestFixture::Text::test); IUTEST_EXPECT_STRCASEEQ(test1, TestFixture::Text::test); IUTEST_INFORM_STRCASEEQ(test1, TestFixture::Text::test); IUTEST_ASSERT_STRCASEEQ(test1, test2); IUTEST_EXPECT_STRCASEEQ(test1, test2); IUTEST_INFORM_STRCASEEQ(test1, test2); IUTEST_ASSERT_STRCASEEQ(TestFixture::Text::test, test2); IUTEST_EXPECT_STRCASEEQ(TestFixture::Text::test, test2); IUTEST_INFORM_STRCASEEQ(TestFixture::Text::test, test2); typename TestFixture::String Test = TestFixture::Text::Test; IUTEST_ASSERT_STRCASEEQ(Test, TestFixture::Text::test); IUTEST_EXPECT_STRCASEEQ(Test, TestFixture::Text::test); IUTEST_INFORM_STRCASEEQ(Test, TestFixture::Text::test); IUTEST_ASSERT_STRCASEEQ(Test, test2); IUTEST_EXPECT_STRCASEEQ(Test, test2); IUTEST_INFORM_STRCASEEQ(Test, test2); IUTEST_ASSERT_STRCASEEQ(TestFixture::Text::test, Test); IUTEST_EXPECT_STRCASEEQ(TestFixture::Text::test, Test); IUTEST_INFORM_STRCASEEQ(TestFixture::Text::test, Test); typename TestFixture::String host = TestFixture::Text::host; IUTEST_ASSERT_STRCASENE(host, TestFixture::Text::test); IUTEST_EXPECT_STRCASENE(host, TestFixture::Text::test); IUTEST_INFORM_STRCASENE(host, TestFixture::Text::test); IUTEST_ASSERT_STRCASENE(host, test2); IUTEST_EXPECT_STRCASENE(host, test2); IUTEST_INFORM_STRCASENE(host, test2); IUTEST_ASSERT_STRCASENE(TestFixture::Text::test, host); IUTEST_EXPECT_STRCASENE(TestFixture::Text::test, host); IUTEST_INFORM_STRCASENE(TestFixture::Text::test, host); }