Skip to content

Test all three SnakObject classes - #241

Merged
JeroenDeDauw merged 4 commits into
masterfrom
testAllClasses
Oct 14, 2014
Merged

Test all three SnakObject classes#241
JeroenDeDauw merged 4 commits into
masterfrom
testAllClasses

Conversation

@thiemowmde

Copy link
Copy Markdown
Contributor

Make sure all SnakObjectTest tests are run with all three SnakObject subclasses. Currently these tests run only once for the PropertyValueSnak subclass.

This is split from #132.

@Benestar

Copy link
Copy Markdown
Contributor

This actually tests nothing relevant in the classes but only adds duplication. The only method one can test in PropertyNoValueSnak and PropertySomeValueSnak is getType but its implementation is so trivial that we also don't really need to test that piece of code.

@thiemowmde

Copy link
Copy Markdown
Contributor Author

Ok, you are right, but if #243 gets merged first then I will rebase this and you will see why it's needed.

@thiemowmde

Copy link
Copy Markdown
Contributor Author

Rebased. Code duplication instead of inheritance. Are you happy now?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy & paste error. Thanks for fixing.

JeroenDeDauw added a commit that referenced this pull request Oct 14, 2014
Test all three SnakObject classes
@JeroenDeDauw
JeroenDeDauw merged commit cc014c5 into master Oct 14, 2014
@JeroenDeDauw
JeroenDeDauw deleted the testAllClasses branch October 14, 2014 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants