|
|
@@ -145,6 +145,12 @@ static void testStringFormat() {
|
|
|
Core::testString("", s);
|
|
|
}
|
|
|
|
|
|
+static void testDefaultString() {
|
|
|
+ Core::StringBase s;
|
|
|
+ Core::test(3, s.format("X{}X", 5));
|
|
|
+ Core::test(0, s.getCapacity());
|
|
|
+}
|
|
|
+
|
|
|
void testUtility() {
|
|
|
testPopCount();
|
|
|
testIf();
|
|
|
@@ -155,6 +161,7 @@ void testUtility() {
|
|
|
testSort();
|
|
|
testToString();
|
|
|
testStringFormat();
|
|
|
+ testDefaultString();
|
|
|
}
|
|
|
|
|
|
static void outOfMemory(void*) {
|