ludic.things: things_spare_warm - spare records made up front, so play takes them from the first placement
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
32050879a1
commit
93e6954fb1
2 changed files with 11 additions and 0 deletions
|
|
@ -240,5 +240,10 @@ program ThingsTest {
|
|||
expect(things_spare_count(things_st) <= 33)
|
||||
things_reserve(things_st, 5000)
|
||||
expect_eq(things_verify(things_st), 0)
|
||||
things_spare_warm(things_st, 96)
|
||||
expect_eq(things_spare_count(things_st), 96)
|
||||
let warm = thing_put(things_st, TH_SIGN, "sign", 9.0, 9.0, 0.0, 0.0, 2.0, 2)
|
||||
expect_eq(things_spare_count(things_st), 95)
|
||||
expect_eq(thing_nearest(things_st, TH_SIGN, 9.0, 9.0).uid, warm.uid)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue