test assert in functions that return values

pull/3009/head
Alexander Medvednikov 2019-12-07 22:39:53 +03:00
parent 751ba48bf5
commit c019dd6f98
1 changed files with 12 additions and 0 deletions

View File

@ -133,3 +133,15 @@ fn test_anon_fn() {
})
*/
}
fn assert_in_bool_fn(v int) bool {
assert v < 3
return true
}
fn test_assert_in_bool_fn() {
assert_in_bool_fn(2)
}