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

fix(document): enforce drop order on DocumentInner #21

Merged
merged 1 commit into from
Aug 5, 2017
Merged

Conversation

ordian
Copy link
Member

@ordian ordian commented Aug 5, 2017

@Boddlnagg, can you check whether this patch fixes #20?

@codecov
Copy link

codecov bot commented Aug 5, 2017

Codecov Report

Merging #21 into master will decrease coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #21      +/-   ##
=========================================
- Coverage   91.25%   91.2%   -0.06%     
=========================================
  Files          22      22              
  Lines        1361    1364       +3     
=========================================
+ Hits         1242    1244       +2     
- Misses        119     120       +1
Impacted Files Coverage Δ
src/document.rs 98.21% <100%> (+0.1%) ⬆️
src/lib.rs 0% <0%> (-100%) ⬇️

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 a908b65...9387fcd. Read the comment docs.

@Boddlnagg
Copy link

Boddlnagg commented Aug 5, 2017

Yes, this does fix the issue, in that the tests don't crash anymore!

There is still one test that doesn't pass, however: test_raw_multiline_string:

---- test_raw_multiline_string stdout ----
        thread 'test_raw_multiline_string' panicked at 'assertion failed: `(left == right)`
  left: `Object({"firstnl": Object({"type": String("string"), "value": String("This string has a \' quote character.")}), "multiline": Object({"type": String("string"), "value": String("This string\nhas \' a quote character\nand more than\none newline\nin it.")}), "oneline": Object({"type": String("string"), "value": String("This string has a \' quote character.")})})`,
 right: `Object({"firstnl": Object({"type": String("string"), "value": String("This string has a \' quote character.")}), "multiline": Object({"type": String("string"), "value": String("This string\r\nhas \' a quote character\r\nand more than\r\none newline\r\nin it.")}), "oneline": Object({"type": String("string"), "value": String("This string has a \' quote character.")})})`', tests\test_valid.rs:54:4
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Seems like the tests aren't expecting Windows \r\n newlines ... but this should also have been caught by AppVeyor?!

@Boddlnagg
Copy link

Boddlnagg commented Aug 5, 2017

Ah, the newline thing might be related to how git checks out the files.

Specifically, I have the git autocrlf setting enabled, and AppVeyor might not use that (which would surprise me, though), leading to different encoding of line endings on checkout.

@ordian
Copy link
Member Author

ordian commented Aug 5, 2017

Thanks for confirming!

bors r+

\r\n is separate issue - it's a bug in the tests. Thanks for the report!

bors bot added a commit that referenced this pull request Aug 5, 2017
21: fix(document): enforce drop order on DocumentInner r=ordian

@Boddlnagg, can you check whether this patch fixes #20?
@bors
Copy link
Contributor

bors bot commented Aug 5, 2017

@bors bors bot merged commit 9387fcd into master Aug 5, 2017
@bors bors bot deleted the drop_fix branch August 5, 2017 12:14
epage added a commit to epage/toml_edit that referenced this pull request Jul 26, 2024
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.

Memory error when running tests on Windows
2 participants