3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 00:26:38 +00:00

Add a test that specifically test the expansion of the memory in string_buffer.

This commit is contained in:
Saikat Chakraborty 2024-08-23 16:57:19 +00:00
parent c56a7dff1f
commit d831ce1161

View file

@ -45,8 +45,18 @@ static void tst3() {
ENSURE(strcmp(b.c_str(), "Hello World") == 0);
}
static void tst_small_buffer_expand(){
string_buffer<4> b;
b << "Hello";
ENSURE(strcmp(b.c_str(), "Hello") == 0);
b << " World";
ENSURE(strcmp(b.c_str(), "Hello World") == 0);
}
void tst_string_buffer() {
tst1();
tst2();
tst3();
tst_small_buffer_expand();
}