Opened 7 years ago
Closed 7 years ago
#14048 closed bug (fixed)
String unit tests
Reported by: | korli | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/Support Kit | Version: | R1/Development |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Several issues in BString unit tests:
- Use CPPUNIT_ASSERT_EQUAL
> +void > +StringSplitTest::PerformTest(void) > +{ > + BString *str1; > + > + NextSubTest(); > + BStringList stringList1; > + str1 = new BString("test::string"); > + str1->Split(":", true, stringList1); > + CPPUNIT_ASSERT(stringList1.CountStrings() == 2); > + delete str1; It would provide better logs in case of error (expected and found values).
- fix their coding style
- fix the failure for "BString::Search" test "i != 0"
Note:
See TracTickets
for help on using tickets.
Fixed in hrev51875. Thanks krish_iyer!