added test for q.size() == 1 case

This commit is contained in:
Bryan Murdock 2026-04-01 13:58:59 -06:00
parent 8f18f0cf22
commit 6d04110cc7
1 changed files with 5 additions and 0 deletions

View File

@ -84,6 +84,11 @@ module t;
q = {q, q};
`checkp(q, "'{\"a\", \"b\", \"a\", \"b\"}");
q = {"a"};
q = q[1:$];
i = q.size();
`checkh(i, 0);
begin
static string ai[$] = '{"Foo", "Bar"};
q = ai; // Copy