()
| 1287 | assert_ne!(after_sort0, after_sort1); |
| 1288 | } |
| 1289 | |
| 1290 | #[test] |
| 1291 | fn ctx_id_same_pushes_yield_same_hash() { |
| 1292 | // ctx hashing keys on intern uids, so the sharing property holds for |
| 1293 | // checkers over the SAME env (which is also the cache-sharing scope). |
| 1294 | let env: *mut KEnv<Meta> = Box::leak(Box::new(KEnv::<Meta>::new())); |
| 1295 | let id1 = { |
| 1296 | let mut tc1 = TypeChecker::new(unsafe { &mut *env }); |
| 1297 | tc1.push_local(sort0()); |
| 1298 | tc1.push_local(sort1()); |