uh oh
This commit is contained in:
parent
d47eaa423e
commit
446de71c30
@ -13,3 +13,10 @@ fn ratio(){
|
|||||||
assert_eq!(c.num,5);
|
assert_eq!(c.num,5);
|
||||||
assert_eq!(c.den,6);
|
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);
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user