Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
kbkpbot committed Oct 6, 2024
1 parent 664b2fd commit 0a997d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
fn test_string_interpolation_float_fmt() {
mut a := 76.295
eprintln('${a:8.2}')
assert '${a:8.2}' == ' 76.30'
assert '${a:8.2}' == ' 76.3'
eprintln('${a:8.2f}')
assert '${a:8.2f}' == ' 76.30'

a = 76.296
eprintln('${a:8.2}')
assert '${a:8.2}' == ' 76.30'
assert '${a:8.2}' == ' 76.3'
eprintln('${a:8.2f}')
assert '${a:8.2f}' == ' 76.30'
}
8 changes: 4 additions & 4 deletions vlib/v/tests/casts/cast_to_empty_interface_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ fn test_cast_to_empty_interface() {
assert ret_strings[1] == 'int 22'
assert ret_strings[2] == 'int 8888'
assert ret_strings[3] == 'int 9999'
assert ret_strings[4] == 'f64 1.110'
assert ret_strings[5] == 'f64 2.220'
assert ret_strings[6] == 'f64 8.880'
assert ret_strings[7] == 'f64 9.990'
assert ret_strings[4] == 'f64 1.11'
assert ret_strings[5] == 'f64 2.22'
assert ret_strings[6] == 'f64 8.88'
assert ret_strings[7] == 'f64 9.99'
}

0 comments on commit 0a997d9

Please sign in to comment.