()
| 1223 | let mut env = KEnv::<Meta>::new(); |
| 1224 | let first = { |
| 1225 | let mut tc = TypeChecker::new(&mut env); |
| 1226 | tc.fresh_fvar_id() |
| 1227 | }; |
| 1228 | let second = { |
| 1229 | let mut tc = TypeChecker::new(&mut env); |
| 1230 | tc.fresh_fvar_id() |
| 1231 | }; |
| 1232 | assert_ne!(first, second); |
| 1233 | assert_eq!(first.0, 0); |
| 1234 | assert_eq!(second.0, 1); |
| 1235 | } |
| 1236 | |
| 1237 | #[test] |
| 1238 | fn push_let_increments_let_count() { |
| 1239 | let mut tc = new_tc(); |
| 1240 | assert_eq!(tc.num_let_bindings, 0); |
| 1241 | tc.push_let(sort0(), sort0()); |
| 1242 | assert_eq!(tc.num_let_bindings, 1); |
nothing calls this directly
no test coverage detected