Initial project import
This commit is contained in:
commit
23f2d29e32
11957 files changed
+1754577
No files matched your search
@@ -0,0 +1,15 @@
|
||||
module pref
|
||||
|
||||
import os
|
||||
|
||||
fn test_detect_vroot_from_subdir() {
|
||||
vroot := @VMODROOT
|
||||
v3_dir := os.join_path(vroot, 'vlib', 'v3')
|
||||
assert detect_vroot_from(v3_dir) == vroot
|
||||
}
|
||||
|
||||
fn test_detect_vroot_from_binary_path() {
|
||||
vroot := @VMODROOT
|
||||
v3_bin := os.join_path(vroot, 'vlib', 'v3', 'v3')
|
||||
assert detect_vroot_from(v3_bin) == vroot
|
||||
}
|
||||
Reference in new issue
Block a user