From 1d685db8493516aa15e927f7c8083cfef0159fbb Mon Sep 17 00:00:00 2001 From: Shubham Kanodia <30821642+shubham-kanodia@users.noreply.github.com> Date: Tue, 15 Aug 2023 14:07:06 +0530 Subject: [PATCH] Add more tests --- src/main.nr | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/src/main.nr b/src/main.nr index 318a5fb..d1f52cc 100644 --- a/src/main.nr +++ b/src/main.nr @@ -11,10 +11,25 @@ fn calculate_hash(num: u32) -> u32 { } #[test] -fn test_main() { +fn test_1() { let num = 127561628; let hash = calculate_hash(num); assert(hash == 0x71233de7); - main(num, hash); +} + +#[test] +fn test_2() { + let num = 237261828; + let hash = calculate_hash(num); + + assert(hash == 0x7F51D567); +} + +#[test] +fn test_3() { + let num = 596214892; + let hash = calculate_hash(num); + + assert(hash == 0x3F0C8995); }