Add new test
This commit is contained in:
1 parent
e0aa57b845
commit
cb99eb4ce9
1 file changed
+5
@@ -309,6 +309,11 @@ int main(void)
|
|||||||
size_t h = string_hash(s1);
|
size_t h = string_hash(s1);
|
||||||
assert (h != 0);
|
assert (h != 0);
|
||||||
|
|
||||||
|
string_set_str (s1, "");
|
||||||
|
assert (string_capacity(s1) > 0);
|
||||||
|
string_reserve (s1, 0);
|
||||||
|
assert (string_capacity(s1) == 0);
|
||||||
|
|
||||||
string_clear (s1);
|
string_clear (s1);
|
||||||
string_clear (s2);
|
string_clear (s2);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user