()
| 232 | |
| 233 | #[test] |
| 234 | fn cross_chunk_push_pop() { |
| 235 | let mut ds = DataStack::new(); |
| 236 | // Push enough to force a new chunk |
| 237 | let mut ptrs = Vec::new(); |
| 238 | for _ in 0..100 { |
| 239 | ptrs.push(ds.push(1024)); |
| 240 | } |
| 241 | // Pop all in reverse |
| 242 | for p in ptrs.into_iter().rev() { |
| 243 | unsafe { ds.pop(p) }; |
| 244 | } |
| 245 | } |
| 246 | |
| 247 | #[test] |
| 248 | fn alignment() { |