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

error on an incorrect V command

This commit is contained in:
Alexander Medvednikov
2019-12-15 04:51:18 +03:00
parent 5971aa7fef
commit 12ebed0589
2 changed files with 79 additions and 60 deletions

View File

@ -510,7 +510,7 @@ pub fn (v mut V) generate_main() {
if test_fn_names.len == 0 {
verror('test files need to have at least one test function')
}
// Generate a C `main`, which calls every single test function
v.gen_main_start(false)
@ -782,7 +782,7 @@ pub fn (v &V) get_user_files() []string {
user_files << single_test_v_file
dir = os.basedir( single_test_v_file )
}
if dir.ends_with('.v') || dir.ends_with('.vsh') {
single_v_file := dir
// Just compile one file and get parent dir