Commit 38f0f63
committed
stack_pops test: sentinel-below stack-hygiene check
Address review on #3836 (same fix as #3828's setpointer test): the trailing
'push 5.0, pop, expect 5.0' proved nothing -- a stack returns the most
recently pushed item, so a sentinel pushed after the pops only probes the
current top. Push the sentinel FIRST, before any symbol/object push, and
recover it at the end; that proves the pops neither over-popped into what lay
beneath nor left anything behind.1 parent d69f6de commit 38f0f63
1 file changed
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
34 | 43 | | |
35 | 44 | | |
36 | 45 | | |
| |||
57 | 66 | | |
58 | 67 | | |
59 | 68 | | |
60 | | - | |
61 | | - | |
62 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
63 | 73 | | |
64 | 74 | | |
65 | 75 | | |
0 commit comments