Tests for PIString 31-40
This commit is contained in:
@@ -214,3 +214,63 @@ TEST(PIString_Tests, operator_compare_pistring_true){
|
|||||||
PIString str2 = "testing";
|
PIString str2 = "testing";
|
||||||
ASSERT_TRUE(str1 == str2);
|
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);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user