Skip to content

improve the confused assert message - #96

Merged
stleary merged 2 commits into
stleary:masterfrom
Alanscut:bean-test
Dec 30, 2019
Merged

stleary merged 2 commits into
stleary:masterfrom
Alanscut:bean-test

Conversation

@Alanscut

Copy link
Copy Markdown
Contributor

The test cases for bean parse are good, but some assert messages make people coufused, some fields are found but described as not working, while another fields are not found but described as found.

Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
Comment thread src/test/java/org/json/junit/JSONObjectTest.java Outdated
@stleary

stleary commented Dec 29, 2019

Copy link
Copy Markdown
Owner

@Alanscut thanks for helping improve the unit tests. I think some of your assert messages may still be off, have commented same. Let me know if you disagree.
These asserts are very confusing, adding comments and clear assert messages helps everyone to understand them better.

@Alanscut

Copy link
Copy Markdown
Contributor Author

@stleary Thanks your suggestion! It make the assert messages more clear 👍

@stleary
stleary merged commit f07ddd9 into stleary:master Dec 30, 2019
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

Successfully merging this pull request may close these issues.

2 participants