MCPcopy Create free account
hub / github.com/argumentcomputer/ix / check_rejects

Function check_rejects

crates/kernel/src/testing.rs:237–243  ·  view source on GitHub ↗
(env: &mut KEnv<Meta>, id: &MId)

Source from the content-addressed store, hash-verified

235}
236
237pub fn check_rejects(env: &mut KEnv<Meta>, id: &MId) {
238 let mut tc = TypeChecker::new(env);
239 match tc.check_const(id) {
240 Err(_) => {},
241 Ok(()) => panic!("expected {id} to be rejected, but it was accepted"),
242 }
243}
244
245/// Check with custom primitives (needed for Nat literal tests etc.)
246pub fn check_accepts_with_prims(

Callers 15

bad_def_type_mismatchFunction · 0.85
bad_non_type_typeFunction · 0.85
bad_forall_sort_badFunction · 0.85
bad_non_prop_thmFunction · 0.85
bad_induct_non_sort_typeFunction · 0.85
bad_induct_refl_occ_leftFunction · 0.85

Calls 1

check_constMethod · 0.80

Tested by

no test coverage detected