module pref import os // test_detect_vroot_from_subdir validates detect vroot from subdir behavior in v3 tests. fn test_detect_vroot_from_subdir() { vroot := @VMODROOT v3_dir := os.join_path(vroot, 'vlib', 'v3') assert detect_vroot_from(v3_dir) == vroot } // test_detect_vroot_from_binary_path validates this v3 regression case. 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 }