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

Function check_accepts

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

Source from the content-addressed store, hash-verified

227// ---- Test runner helpers ----
228
229pub fn check_accepts(env: &mut KEnv<Meta>, id: &MId) {
230 let mut tc = TypeChecker::new(env);
231 match tc.check_const(id) {
232 Ok(()) => {},
233 Err(e) => panic!("expected {id} to be accepted, got error: {e:?}"),
234 }
235}
236
237pub fn check_rejects(env: &mut KEnv<Meta>, id: &MId) {
238 let mut tc = TypeChecker::new(env);

Callers 15

good_peano1Function · 0.85
good_peano2Function · 0.85
good_peano3Function · 0.85
good_bool_rec_reductionFunction · 0.85
good_n_rec_reductionFunction · 0.85
good_rtree_rec_reductionFunction · 0.85
good_proj_redFunction · 0.85
good_struct_etaFunction · 0.85
good_prod_rec_reductionFunction · 0.85
good_basic_defFunction · 0.85

Calls 1

check_constMethod · 0.80

Tested by

no test coverage detected