MCPcopy Create free account
hub / github.com/BitVM/BitVM / test_modulo_for_blake_table

Function test_modulo_for_blake_table

bitvm/src/u4/u4_add_stack.rs:225–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

223 }
224 #[test]
225 fn test_modulo_for_blake_table() {
226 for i in 0..48 {
227 let mut stack = StackTracker::new();
228 let modulo = u4_push_modulo_for_blake(&mut stack);
229 stack.number(i);
230 stack.op_pick();
231 stack.number(i % 16);
232 stack.op_equal();
233 stack.op_verify();
234 stack.drop(modulo);
235 stack.op_true();
236 let res = stack.run();
237 assert!(res.success);
238 }
239 }
240}

Callers

nothing calls this directly

Calls 2

u4_push_modulo_for_blakeFunction · 0.85
dropMethod · 0.45

Tested by

no test coverage detected