From 446de71c30801383c02d900f44516694c78a82ca Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 28 Aug 2024 16:15:54 -0700 Subject: [PATCH] uh oh --- deferred_division/src/tests/tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deferred_division/src/tests/tests.rs b/deferred_division/src/tests/tests.rs index e98e832..d004719 100644 --- a/deferred_division/src/tests/tests.rs +++ b/deferred_division/src/tests/tests.rs @@ -13,3 +13,10 @@ fn ratio(){ assert_eq!(c.num,5); assert_eq!(c.den,6); } + +#[test] +fn add_ratio_cmp(){ + let a=Ratio::new(5,3); + let b=Ratio::new(1,3); + assert_eq!(a+b,2); +}