mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
update tests and examples after the mutability fix
This commit is contained in:
@ -147,7 +147,7 @@ fn test_fraction_equals() {
|
||||
}
|
||||
|
||||
fn test_gcd_and_reduce(){
|
||||
mut f := fractions.fraction(3, 9)
|
||||
f := fractions.fraction(3, 9)
|
||||
assert f.gcd() == 3
|
||||
assert f.reduce().equals(fractions.fraction(1, 3))
|
||||
assert f.reduce().equals(fractions.fraction(1, 3))
|
||||
}
|
||||
|
Reference in New Issue
Block a user