test/test_string.cpp

changeset 586
aa51aaa907b9
parent 585
038f5e99e00f
child 587
3dd55e246d2d
equal deleted inserted replaced
585:038f5e99e00f 586:aa51aaa907b9
595 cx_strfree(&replan9); 595 cx_strfree(&replan9);
596 cx_strfree(&replan10); 596 cx_strfree(&replan10);
597 cx_strfree(&replcs1); 597 cx_strfree(&replcs1);
598 cx_strfree(&replcs2); 598 cx_strfree(&replcs2);
599 } 599 }
600
601 TEST(String, strupper) {
602 cxmutstr str = cx_strdup(cx_str("thIs 1s @ Te$t"));
603 cx_strupper(str);
604 EXPECT_STREQ(str.ptr, "THIS 1S @ TE$T");
605 cx_strfree(&str);
606 }
607
608 TEST(String, strlower) {
609 cxmutstr str = cx_strdup(cx_str("thIs 1s @ Te$t"));
610 cx_strlower(str);
611 EXPECT_STREQ(str.ptr, "this 1s @ te$t");
612 cx_strfree(&str);
613 }

mercurial