1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

tests: use _test.v for the postfix of some test files, that were missing it

This commit is contained in:
Delyan Angelov 2022-10-19 12:07:33 +03:00
parent 37b03e57b4
commit 7f294c8278
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
3 changed files with 5 additions and 4 deletions

View File

@ -18,8 +18,9 @@ fn reflect_call(method_name string) string {
panic('Method not supported: $method_name')
}
fn main() {
result := reflect_call('method_one')
println(result)
assert result == '1'
fn test_reflect_call_returning_a_comptime_method() {
res1 := dump(reflect_call('method_one'))
assert res1 == '1'
res2 := dump(reflect_call('method_two'))
assert res2 == '2'
}