MCPcopy Create free account
hub / github.com/ControlCplusControlV/Scribe / u256_function

Function u256_function

crates/miden-integration-tests/tests/u256.rs:286–301  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284
285#[test]
286fn u256_function() {
287 run_example(
288 "
289 function add_a_lot(a:u256) -> b:u256 {
290 let b:u256 := 100
291 if eq(a, 100) {
292 b := add(a, 18446744073709551616)
293 }
294 }
295 let z:u256 := add_a_lot(100)
296 let b := 4
297 z
298 ",
299 MidenResult::U256(U256::from_dec_str("18446744073709551716").unwrap()),
300 );
301}
302
303#[test]
304fn u256_sum_odds() {

Callers

nothing calls this directly

Calls 2

run_exampleFunction · 0.85
U256Class · 0.85

Tested by

no test coverage detected