1
0
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:
Alexander Medvednikov
2019-11-06 06:57:04 +03:00
parent b720bb2e77
commit f6d06fcda2
6 changed files with 27 additions and 26 deletions

View File

@ -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))
}