diff options
| author | Randy Palamar <randy@rnpnr.xyz> | 2025-02-28 07:41:00 -0700 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-02-28 07:42:39 -0700 |
| commit | 05897c884af2ae3ed66f80b624f657dc898da2ae (patch) | |
| tree | bf74edff7babb2ba9a534e044730eda8a0a2be1e /test | |
| parent | b68b822bd0c329a170a84ae2ca24014971b330b4 (diff) | |
| download | vis-05897c884af2ae3ed66f80b624f657dc898da2ae.tar.gz vis-05897c884af2ae3ed66f80b624f657dc898da2ae.tar.xz | |
buffer: remove buffer_printf
There was only a single user of this function because
buffer_appendf is significantly more useful. Change that caller
and reduce the code.
Diffstat (limited to 'test')
| -rw-r--r-- | test/core/buffer-test.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/core/buffer-test.c b/test/core/buffer-test.c index 269f792..f3b2dad 100644 --- a/test/core/buffer-test.c +++ b/test/core/buffer-test.c @@ -57,14 +57,6 @@ int main(int argc, char *argv[]) { buf.len = 0; skip_if(TIS_INTERPRETER, 1, "vsnprintf not supported") { - - ok(buffer_printf(&buf, "Test: %d\n", 42) && compare0(&buf, "Test: 42\n"), "Set formatted"); - ok(buffer_printf(&buf, "%d\n", 42) && compare0(&buf, "42\n"), "Set formatted overwrite"); - buf.len = 0; - - ok(buffer_printf(&buf, "%s", "") && compare0(&buf, ""), "Set formatted empty string"); - buf.len = 0; - bool append = true; for (int i = 1; i <= 10; i++) append &= buffer_appendf(&buf, "%d", i); |
