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

Function test_2_nib_shift_blake

bitvm/src/u4/u4_shift_stack.rs:167–183  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165
166 #[test]
167 fn test_2_nib_shift_blake() {
168 for y in 0..16 {
169 for x in 0..16 {
170 let n = 3;
171 let mut stack = StackTracker::new();
172 let tables = u4_push_shift_for_blake(&mut stack);
173 stack.number(y);
174 stack.number(x);
175 u4_2_nib_shift_blake(&mut stack, tables);
176 stack.number((((y << 4) + x) >> n) % 16);
177 stack.op_equalverify();
178 stack.drop(tables);
179 stack.op_true();
180 assert!(stack.run().success);
181 }
182 }
183 }
184}

Callers

nothing calls this directly

Calls 3

u4_push_shift_for_blakeFunction · 0.85
u4_2_nib_shift_blakeFunction · 0.85
dropMethod · 0.45

Tested by

no test coverage detected