Differences From Artifact [33cbcd9d9d]:
- File tests/tests.c — part of check-in [23193dc30b] at 2012-04-08 21:08:04 on branch trunk — Fix includes in tests. (user: js, size: 1950) [annotate] [blame] [check-ins using]
To Artifact [fede98c922]:
- File tests/tests.c — part of check-in [8f1f410978] at 2012-04-08 21:10:39 on branch trunk — Add cfw_string_find(). (user: js, size: 2066) [annotate] [blame] [check-ins using]
︙ | |||
51 52 53 54 55 56 57 58 59 60 61 62 | 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 | + + + + | for (i = 0; i < cfw_array_size(a); i++) cfw_string_append(s[0], cfw_array_get(a, i)); cfw_unref(a); puts(cfw_string_c(s[0])); s[1] = cfw_new(cfw_string, "ll"); printf("%zd\n", cfw_string_find(s[0], s[1], cfw_range_all)); cfw_unref(s[1]); cfw_unref(s[0]); return 0; } |