-
Notifications
You must be signed in to change notification settings - Fork 335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update stumpless_param_to_string format #361
Comments
I would like to help with this!!! Can you give some more details to help me get started? |
Hello @rmknan, please feel free to work on it. What details do you need beyond the description above? |
I think it's pretty clear how to start and how to go about it. I will start and ask further if any issues come up. Can you assign this issue to me? |
Based on my understanding to change the current format to the specified one, I need to make changes to the code below. To change it to desired format of
Please let me know if this is right? Thank you. |
This looks close, but may have some small problems. A good next step would be to make this change yourself, and see what the result of the tests is afterwards. |
I go to the Latest test log to check the errors. It lists out errors in
Edit : I tried changing it to whatever it said before but now it suggest something else
How do identify those problems? Thank you. |
It isn't clear to me exactly what the larger context of those snippets is, but I believe they are from the Note that the first character of the params is invalid ( |
Could you elaborate further,
This one is from param.cpp ( As for the other snippet, its from
|
In your new implementation, the line Tests that use the |
So my param.cpp test passes but element.cpp test fails. The log file shows
The I tried changing things on the element.cpp file but have not found anything to solve this yet. I tried checking the |
I tried changing it just to to test it out, comes close to matching with just the hT.
|
I believe I'm not sure what you changed to achieve the above output of |
The
stumpless_param_to_string
function was originally implemented with a relatively arbitrary string format of<name>:<value>
. However, as the CLI logger is developed, and thestumpless_new_param_from_string
function is implemented in #360, there is a strong case for this format to instead bename="value"
. This change adjusts the function, it's documentation, and tests to this new format.General Approach
There are a few details left out of the following approach, for you to fill in as you encounter them. If you find you need help, please ask here or on the project gitter and someone can help you get past the stumbling block.
There are three main things that need to change for this adjustment: the implementation itself, the documentation, and the test suite. The development documentation has everything that you need to get started and more. This change is relatively simple, so you won't need to do much more than build the library and run the test suite.
Starting with the implementation will be most straightforward approach. The function is implemented in
src/param.c
. The adjustments to match the new format should be relatively minor.After changing the implementation, the tests will be failing. You can find them in
test/function/param.cpp
. Run the test suite (using thecheck
target is the easiest way to do this). Fix anything that has broken after your update. You will likely also need to adjust some of the tests forstumpless_element_to_string
as well intest/function/element.cpp
- simply update the tests to match the new format.Finally, update the documentation in both
include/stumpless/param.h
forstumpless_param_to_string
andinclude/stumpless/element.h
forstumpless_element_to_string
.The text was updated successfully, but these errors were encountered: