ludic.base: core_undrained fills a list the caller keeps; hd_refuse's panic declared; ludic.photo's slug declared (a photograph taken)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
a0c6f8ce7f
commit
8fbfeb7f9d
6 changed files with 13 additions and 11 deletions
|
|
@ -86,11 +86,11 @@ program QueueTest {
|
|||
q_push(b, 2)
|
||||
q_drain(b)
|
||||
let tags = [q_tag(a), q_tag(b)]
|
||||
let names = core_undrained(tags)
|
||||
expect_eq(len(names), 1)
|
||||
let names = new []string
|
||||
expect_eq(core_undrained(tags, names), 1)
|
||||
expect(names[0] == "left_behind")
|
||||
q_drain(a)
|
||||
expect_eq(len(core_undrained(tags)), 0)
|
||||
expect_eq(core_undrained(tags, names), 0)
|
||||
}
|
||||
|
||||
# an empty drain allocates nothing and hands back the same empty list; a drained list is the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue