Added test for trait From<T> for Ratio<T> where T: Clone + Integer.

This commit is contained in:
Wictor Lund 2016-12-01 22:07:03 +02:00
parent de91d5d9e3
commit 4bdad38eee
1 changed files with 1 additions and 0 deletions

View File

@ -745,6 +745,7 @@ mod test {
assert_eq!(_1_2, Ratio::new(1, 2));
assert_eq!(_3_2, Ratio::new(3, 2));
assert_eq!(_NEG1_2, Ratio::new(-1, 2));
assert_eq!(_2, From::from(2));
}
#[test]