You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without it, the test file is considered to be an entirely separate program, and is compiled without having access to any of the symbols from the other files in src/ (i.e. you would have to import everything that you want to test in it, and you can not import the main module).
You can also try v test . in the src/ folder. It will pass for a _test.v file, that has module main at its top, and will fail, for one that lacks it:
Describe the bug
Given a v project with these two files
Expected Behavior
FileManager
should be shownCurrent Behavior
FileManager
structReproduction Steps
v new <project_name>
file_manager.v
andfile_manager_test.v
file_manager.v
file_manager_test.v
Possible Solution
No response
Additional Information/Context
No response
Environment details (
v doctor
output)V full version: V 0.4.6 604eb65.7a36b44
OS: macos, macOS, 14.0, 23A344
Processor: 10 cpus, 64bit, little endian, Apple M1 Pro
getwd: /Users/tomialagbe/dev
vexe: /Users/tomialagbe/v/v
vexe mtime: 2024-05-22 18:07:15
vroot: OK, value: /Users/tomialagbe/v
VMODULES: OK, value: /Users/tomialagbe/.vmodules
VTMP: OK, value: /tmp/v_501
Git version: git version 2.39.3 (Apple Git-146)
Git vroot status: weekly.2023.32-1929-g7a36b44c-dirty
.git/config present: true
CC version: Apple clang version 15.0.0 (clang-1500.3.9.4)
thirdparty/tcc status: thirdparty-macos-arm64 5c1d002f
Editor name
Vscode
v-analyzer Version
v-analyzer version: 0.0.4-beta.1.7e11a6f
VS Code Extension Version
v0.0.2
The text was updated successfully, but these errors were encountered: