Lines Matching refs:dest
20 char dest[128]; in StrncatTest() local
23 TEST_EQ(0, StrnAppend(dest, NULL, sizeof(dest)), "StrnAppend('', null)"); in StrncatTest()
24 TEST_EQ(0, StrnAppend(NULL, "Hey!", sizeof(dest)), "StrnAppend(null, '')"); in StrncatTest()
27 *dest = 0; in StrncatTest()
28 TEST_EQ(0, StrnAppend(dest, "", sizeof(dest)), "StrnAppend('', '')"); in StrncatTest()
29 TEST_EQ(0, strcmp(dest, ""), "StrnAppend('', '') result"); in StrncatTest()
32 strcpy(dest, "Bob"); in StrncatTest()
33 TEST_EQ(3, StrnAppend(dest, "", sizeof(dest)), "StrnAppend(B, '')"); in StrncatTest()
34 TEST_EQ(0, strcmp(dest, "Bob"), "StrnAppend(B, '') result"); in StrncatTest()
37 *dest = 0; in StrncatTest()
38 TEST_EQ(5, StrnAppend(dest, "Alice", sizeof(dest)), "StrnAppend('', A)"); in StrncatTest()
39 TEST_EQ(0, strcmp(dest, "Alice"), "StrnAppend('', A) result"); in StrncatTest()
42 strcpy(dest, "Tigre"); in StrncatTest()
43 TEST_EQ(10, StrnAppend(dest, "Bunny", sizeof(dest)), "StrnAppend(T, B)"); in StrncatTest()
44 TEST_EQ(0, strcmp(dest, "TigreBunny"), "StrnAppend(T, B) result"); in StrncatTest()
47 strcpy(dest, "YesI"); in StrncatTest()
48 TEST_EQ(7, StrnAppend(dest, "Can't", 8), "StrnAppend(Y, over)"); in StrncatTest()
49 TEST_EQ(0, strcmp(dest, "YesICan"), "StrnAppend(Y, over) result"); in StrncatTest()
52 strcpy(dest, "BudgetDeficit"); in StrncatTest()
53 TEST_EQ(6, StrnAppend(dest, "Spending", 7), "StrnAppend(over, over)"); in StrncatTest()
54 TEST_EQ(0, strcmp(dest, "Budget"), "StrnAppend(over, over) result"); in StrncatTest()
60 char dest[UINT64_TO_STRING_MAX]; in TestU64ToS() local
63 Uint64ToString(dest, sizeof(dest), value, radix, zero_pad_width), in TestU64ToS()
65 printf("Uint64ToString expect %s got %s\n", expect, dest); in TestU64ToS()
66 TEST_EQ(0, strcmp(dest, expect), "Uint64ToString result"); in TestU64ToS()
72 char dest[UINT64_TO_STRING_MAX]; in Uint64ToStringTest() local
103 TEST_EQ(0, Uint64ToString(dest, 8, 123, 10, 8), "Uint64ToString bad pad"); in Uint64ToStringTest()
104 TEST_EQ(0, strcmp(dest, ""), "Uint64ToString bad pad result"); in Uint64ToStringTest()