Skip to content
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

Small parsing inconsistency #116

Open
smithjoana opened this issue Jun 24, 2019 · 0 comments
Open

Small parsing inconsistency #116

smithjoana opened this issue Jun 24, 2019 · 0 comments

Comments

@smithjoana
Copy link
Contributor

Small inconsistency found in the way gravity parses strings. Let's say the Gravity.ini file looks as follows:

string1 = "message"
String1 = "Message"

int1 = 9;
Int1 = 10;

The second key is the same as the first except that the first letter is capitalized. For ints, floats, and booleans, the value of the first key will be stored. So when the user parses for int1 or Int1, they will always get back 9. The string parser is the only one that is inconsistent with this. When the user parses for string1 or String1, they will get back "Message", the second value.

This is a corner case and unlikely to make a big difference in practice, but still thought it important to document. The unit tests are currently testing for this consistency.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant