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

compiler: print asserted source line on failure

This commit is contained in:
Delyan Angelov
2019-10-30 11:15:33 +02:00
committed by Alexander Medvednikov
parent ee6ec3faf3
commit ba6cc5df2a
6 changed files with 100 additions and 18 deletions

View File

@ -648,11 +648,14 @@ pub fn (v &V) get_user_files() []string {
// libs, but we dont know which libs need to be added yet
mut user_files := []string
if v.pref.is_test && v.pref.is_stats {
user_files << os.join(v.vroot, 'vlib', 'benchmark', 'tests',
'always_imported.v')
if v.pref.is_test {
user_files << os.join(v.vroot,'vlib','compiler','preludes','tests_assertions.v')
}
if v.pref.is_test && v.pref.is_stats {
user_files << os.join(v.vroot,'vlib','compiler','preludes','tests_with_stats.v')
}
// v volt/slack_test.v: compile all .v files to get the environment
// I need to implement user packages! TODO
is_test_with_imports := dir.ends_with('_test.v') &&