tests in same file in V #18746
Closed
prashanth-hegde
started this conversation in
Ideas
Replies: 3 comments
-
It has been suggested before, but turned down. V looks for files with |
Beta Was this translation helpful? Give feedback.
0 replies
-
We have to be careful about bringing in practices from different languages. What some other language does, may not fit in another language for both technical and cultural reasons. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing because it's been discussed before |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Wouldn't it be nice to write tests in the same file as code in V also.
Reference: Zig,
Definitely not proposing to change the current way of test suites as shown here.
But proposing supporting another way of testing with test cases defined in the same file. We can have the same requirements as current, viz:
test_
namev test .
commandSuch type of testing may be very beneficial for code that has a single file, or for shell scripts
Beta Was this translation helpful? Give feedback.
All reactions