Lines Matching refs:string

6 StringFormatAppendTest::StringFormatAppendTest(std::string name)  in StringFormatAppendTest()
20 BString *string, *string2; in PerformTest() local
24 string = new BString("some"); in PerformTest()
25 *string << " "; in PerformTest()
26 *string << "text"; in PerformTest()
27 CPPUNIT_ASSERT(strcmp(string->String(), "some text") == 0); in PerformTest()
28 delete string; in PerformTest()
32 string = new BString("some "); in PerformTest()
34 *string << *string2; in PerformTest()
35 CPPUNIT_ASSERT(strcmp(string->String(), "some text") == 0); in PerformTest()
36 delete string; in PerformTest()
41 string = new BString("str"); in PerformTest()
42 *string << 'i' << 'n' << 'g'; in PerformTest()
43 CPPUNIT_ASSERT(strcmp(string->String(), "string") == 0); in PerformTest()
44 delete string; in PerformTest()
48 string = new BString("level "); in PerformTest()
49 *string << (int)42; in PerformTest()
50 CPPUNIT_ASSERT(strcmp(string->String(), "level 42") == 0); in PerformTest()
51 delete string; in PerformTest()
54 string = new BString("error "); in PerformTest()
55 *string << (int)-1; in PerformTest()
56 CPPUNIT_ASSERT(strcmp(string->String(), "error -1") == 0); in PerformTest()
57 delete string; in PerformTest()
61 string = new BString("number "); in PerformTest()
62 *string << (unsigned int)296; in PerformTest()
63 CPPUNIT_ASSERT(strcmp(string->String(), "number 296") == 0); in PerformTest()
64 delete string; in PerformTest()
68 string = new BString; in PerformTest()
69 *string << (uint32)102456; in PerformTest()
70 CPPUNIT_ASSERT(strcmp(string->String(), "102456") == 0); in PerformTest()
71 delete string; in PerformTest()
75 string = new BString; in PerformTest()
76 *string << (int32)112456; in PerformTest()
77 CPPUNIT_ASSERT(strcmp(string->String(), "112456") == 0); in PerformTest()
78 delete string; in PerformTest()
81 string = new BString; in PerformTest()
82 *string << (int32)-112475; in PerformTest()
83 CPPUNIT_ASSERT(strcmp(string->String(), "-112475") == 0); in PerformTest()
84 delete string; in PerformTest()
88 string = new BString; in PerformTest()
89 *string << (uint64)1145267987; in PerformTest()
90 CPPUNIT_ASSERT(strcmp(string->String(), "1145267987") == 0); in PerformTest()
91 delete string; in PerformTest()
95 string = new BString; in PerformTest()
96 *string << (int64)112456; in PerformTest()
97 CPPUNIT_ASSERT(strcmp(string->String(), "112456") == 0); in PerformTest()
98 delete string; in PerformTest()
101 string = new BString; in PerformTest()
102 *string << (int64)-112475; in PerformTest()
103 CPPUNIT_ASSERT(strcmp(string->String(), "-112475") == 0); in PerformTest()
104 delete string; in PerformTest()
108 string = new BString; in PerformTest()
109 *string << (float)34.542; in PerformTest()
110 CPPUNIT_ASSERT(strcmp(string->String(), "34.54") == 0); in PerformTest()
111 delete string; in PerformTest()