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

Function expr_ref_no_univs

crates/ixon/src/lib.rs:250–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

248 assert_eq!(buf, vec![0x10], "Expr::Var(0) should be 0x10");
249 }
250
251 #[test]
252 fn expr_sort_0() {
253 // Expr::Sort(0) -> Tag4 { flag: 0x0, size: 0 } -> 0x00
254 let mut buf = Vec::new();
255 serialize::put_expr(&Expr::Sort(0), &mut buf);
256 assert_eq!(buf, vec![0x00], "Expr::Sort(0) should be 0x00");
257 }
258
259 #[test]
260 fn expr_ref_no_univs() {
261 // Expr::Ref(0, []) -> Tag4 { flag: 0x2, size: 0 } + idx(0)
262 // = 0x20 + 0x00
263 let mut buf = Vec::new();

Callers

nothing calls this directly

Calls 1

put_exprFunction · 0.85

Tested by

no test coverage detected