()
| 346 | #[test] |
| 347 | #[should_panic] |
| 348 | fn get_nonexistent_constant() { |
| 349 | let sut = ConstantPool::new(); |
| 350 | let a = Constant::with_number(42).unwrap(); |
| 351 | sut.get(a); // panics, only use constants returned by ConstantPool |
| 352 | } |
| 353 | |
| 354 | #[test] |
| 355 | fn display_constant_data() { |