mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
tests: fix fn_test.v
This commit is contained in:
@@ -96,6 +96,7 @@ fn test_mut_struct() {
|
|||||||
assert user.age == 19
|
assert user.age == 19
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
fn mod_ptr(mut buf &byte) {
|
fn mod_ptr(mut buf &byte) {
|
||||||
buf[0] = 77
|
buf[0] = 77
|
||||||
}
|
}
|
||||||
@@ -105,6 +106,7 @@ fn test_mut_ptr() {
|
|||||||
mod_ptr(mut buf)
|
mod_ptr(mut buf)
|
||||||
assert buf[0] == 77
|
assert buf[0] == 77
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
fn assert_in_bool_fn(v int) bool {
|
fn assert_in_bool_fn(v int) bool {
|
||||||
assert v < 3
|
assert v < 3
|
||||||
|
|||||||
Reference in New Issue
Block a user