diff --git a/tests/core/pistringTest.cpp b/tests/core/pistringTest.cpp index 39652773..f2f78486 100644 --- a/tests/core/pistringTest.cpp +++ b/tests/core/pistringTest.cpp @@ -214,3 +214,63 @@ TEST(PIString_Tests, operator_compare_pistring_true){ PIString str2 = "testing"; ASSERT_TRUE(str1 == str2); } + +TEST(PIString_Tests, operator_compare_pistring_false){ + PIString str1 = "tes"; + PIString str2 = "testing"; + ASSERT_FALSE(str1 == str2); +} + +TEST(PIString_Tests, operator_compare_pichar_true){ + PIString str1 = "t"; + PIChar str2 = "t"; + ASSERT_TRUE(str1 == str2); +} + +TEST(PIString_Tests, operator_compare_pichar_false){ + PIString str1 = "t"; + PIChar str2 = "p"; + ASSERT_FALSE(str1 == str2); +} + +TEST(PIString_Tests, operator_compare_char_true){ + PIString str1 = "test"; + char str2[] = "test"; + ASSERT_TRUE(str1 == str2); +} + +TEST(PIString_Tests, operator_compare_char_false){ + PIString str1 = "t"; + char str2[] = "test"; + ASSERT_FALSE(str1 == str2); +} + +TEST(PIString_Tests, operator_enq_compare_pistring_false){ + PIString str1 = "testing"; + PIString str2 = "testing"; + ASSERT_FALSE(str1 != str2); +} + +TEST(PIString_Tests, operator_enq_compare_pistring_true){ + PIString str1 = "tes"; + PIString str2 = "testing"; + ASSERT_TRUE(str1 != str2); +} + +TEST(PIString_Tests, operator_enq_compare_pichar_false){ + PIString str1 = "t"; + PIChar str2 = "t"; + ASSERT_FALSE(str1 != str2); +} + +TEST(PIString_Tests, operator_enq_compare_pichar_true){ + PIString str1 = "t"; + PIChar str2 = "p"; + ASSERT_TRUE(str1 != str2); +} + +TEST(PIString_Tests, operator_enq_compare_char_false){ + PIString str1 = "test"; + char str2[] = "test"; + ASSERT_FALSE(str1 != str2); +}