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

Function test_quotient_for_blake_table

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

Source from the content-addressed store, hash-verified

207
208 #[test]
209 fn test_quotient_for_blake_table() {
210 for i in 0..48 {
211 let mut stack = StackTracker::new();
212 let quotient = u4_push_quotient_for_blake(&mut stack);
213 stack.number(i);
214 stack.op_pick();
215 stack.number(i / 16);
216 stack.op_equal();
217 stack.op_verify();
218 stack.drop(quotient);
219 stack.op_true();
220 let res = stack.run();
221 assert!(res.success);
222 }
223 }
224 #[test]
225 fn test_modulo_for_blake_table() {
226 for i in 0..48 {

Callers

nothing calls this directly

Calls 2

dropMethod · 0.45

Tested by

no test coverage detected