Skip to content

Commit e2ca8dd

Browse files
Update test_tdd.cpp
1 parent 270e2c9 commit e2ca8dd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

code/tests/cases/test_tdd.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,9 @@ FOSSIL_TEST_CASE(cpp_assume_run_of_bstr) {
692692
std::string str3 = "World";
693693

694694
// Test cases
695-
ASSUME_ITS_EQUAL_BSTR(str1, str2);
696-
ASSUME_NOT_EQUAL_BSTR(str1, str3);
697-
ASSUME_ITS_LENGTH_EQUAL_BSTR(str1, 5);
695+
ASSUME_ITS_EQUAL_BSTR(str1.c_str(), str2.c_str());
696+
ASSUME_NOT_EQUAL_BSTR(str1.c_str(), str3.c_str());
697+
ASSUME_ITS_LENGTH_EQUAL_BSTR(str1.c_str(), 5);
698698
} // end case
699699

700700
FOSSIL_TEST_CASE(cpp_assume_run_of_cstr) {
@@ -703,9 +703,9 @@ FOSSIL_TEST_CASE(cpp_assume_run_of_cstr) {
703703
std::string str3 = "World";
704704

705705
// Test cases
706-
ASSUME_ITS_EQUAL_CSTR(str1, str2);
707-
ASSUME_NOT_EQUAL_CSTR(str1, str3);
708-
ASSUME_ITS_LENGTH_EQUAL_CSTR(str1, 5);
706+
ASSUME_ITS_EQUAL_CSTR(str1.c_str(), str2.c_str());
707+
ASSUME_NOT_EQUAL_CSTR(str1.c_str(), str3.c_str());
708+
ASSUME_ITS_LENGTH_EQUAL_CSTR(str1.c_str(), 5);
709709
} // end case
710710

711711
// * * * * * * * * * * * * * * * * * * * * * * * *

0 commit comments

Comments
 (0)