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

Add more tests #39

Merged
merged 6 commits into from
Aug 1, 2019
Merged

Add more tests #39

merged 6 commits into from
Aug 1, 2019

Conversation

rofinn
Copy link
Member

@rofinn rofinn commented Jul 31, 2019

Closes #30 and #27.

NOTE: Since dropobs requires that parent(data) === data you may find unexpected behaviour when working with wrapper array types where it'll return the parent type rather than the wrapper type. I'm not sure if there is a good way around this since setparent! isn't a thing.

@codecov
Copy link

codecov bot commented Jul 31, 2019

Codecov Report

Merging #39 into master will increase coverage by 1.3%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #39     +/-   ##
=========================================
+ Coverage   95.63%   96.93%   +1.3%     
=========================================
  Files          10       10             
  Lines         206      196     -10     
=========================================
- Hits          197      190      -7     
+ Misses          9        6      -3
Impacted Files Coverage Δ
src/imputors/drop.jl 100% <100%> (+7.5%) ⬆️
src/imputors/fill.jl 100% <100%> (ø) ⬆️
src/context.jl 100% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15181d7...5c45db0. Read the comment docs.

@rofinn rofinn force-pushed the rf/moar-tests branch 2 times, most recently from 13d636e to 39a1de6 Compare August 1, 2019 19:07
Copy link
Contributor

@nickrobinson251 nickrobinson251 left a comment

Choose a reason for hiding this comment

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

This is really sad :( But I think it's the best we can do right now

src/imputors/drop.jl Show resolved Hide resolved
rowtab_ = Impute.dropobs!(rowtab; context=ctx)
# The mutating test is broken because we need to making a copy of
# the original table
# @test_broken isequal(rowtab, expected)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# @test_broken isequal(rowtab, expected)
@test_broken isequal(rowtab, expected)

Copy link
Member Author

Choose a reason for hiding this comment

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

Fun fact, this test isn't broken :D

Copy link
Contributor

Choose a reason for hiding this comment

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

can you please add a comment on that? (I didn't understand from the current comment why this test was commented out)

@rofinn rofinn merged commit 6c67401 into master Aug 1, 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.

Add test cases for AxisArrays
2 participants