Closed kakig closed 2 years ago
This doesn't make sense though - the command CphTest passes its arguments as-it-is to process_tests.process
, which passes them as-it-is to iterate_cases
If i print the case_numbers
table in iterate_cases I get { "1" }
If I print case
before this line
https://github.com/p00f/cphelper.nvim/blob/4bc91f27a29dad0eaeda6c3470924f6e1174f4aa/lua/cphelper/process_tests.lua#L30
I get only 1
Ah understood
Thanks!
This pull request fixes an issue when using
CphTest
with arguments.Running
CphTest 1
gives the following error:It seems like the
case
variable was already the complete filename, so by prepending "input", we ended up withinputinput1
as filename, which doesn't exist. I just removed the prepending part of the code.