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

Function test_calc

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

Source from the content-addressed store, hash-verified

237
238 #[test]
239 fn test_calc() {
240 let x = u4_arrange_nibbles(8, vec![0, 1, 2, 4]);
241 println!("{}", x.len());
242 //let x = u4_add_with_table(8, vec![0, 8, 16, 24, 32], 100);
243 //println!("{}", x.len());
244 let x = u4_add_with_table(8, vec![0, 8, 16, 24], 100);
245 println!("{}", x.len());
246 let x = u4_add_no_table(8, vec![0, 8, 16, 24, 32]);
247 println!("{}", x.len());
248 let x = u4_add_no_table(8, vec![0, 8, 16, 24]);
249 println!("{}", x.len());
250 let x = u4_add_no_table(8, vec![0, 8, 16]);
251 println!("{}", x.len());
252 let x = u4_add_no_table(8, vec![0, 8]);
253 println!("{}", x.len());
254 }
255
256 #[test]
257 fn test_add_no_table() {

Callers

nothing calls this directly

Calls 3

u4_arrange_nibblesFunction · 0.85
u4_add_with_tableFunction · 0.85
u4_add_no_tableFunction · 0.85

Tested by

no test coverage detected