You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the test keyword to add tests to a leo program. Tests must have 0 function inputs and 0 function returns.
function main(a: u32) -> u32{return a
}
test function expect_pass(){let a = 1u32;let res = main(a);assert_eq!(res, 1u32);}
test function expect_fail(){assert_eq!(1u8, 0u8);}
No description provided.
The text was updated successfully, but these errors were encountered: