-
Notifications
You must be signed in to change notification settings - Fork 531
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
Fixed inaccurate test/ignores. #362
Changes from 2 commits
b5e416f
e0da8ae
411f305
0d515c9
6c480f7
e671e89
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,13 +13,18 @@ fn test_zero() { | |
// If the below test is uncommented, it should not compile. | ||
// | ||
/* | ||
#[test] | ||
fn test_negative() { | ||
assert_eq!(say::encode(-1), String::from("won't compile")); | ||
} | ||
|
||
#[test] | ||
#[ignore] | ||
#[should_panic] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm unsure I kind of wish Rust would have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That is https://github.com/laumann/compiletest-rs apparently. a project for another day (and probably not something we can make students download) |
||
fn test_negative() { | ||
assert_eq!(say::encode(-1), String::from("won't compile")); | ||
} | ||
|
||
*/ | ||
|
||
#[test] | ||
#[ignore] | ||
fn test_one() { | ||
assert_eq!(say::encode(1), String::from("one")); | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is changing more lines than I expect it to change. A space got added before each line. That makes it hard to understand what changed, since now each line of this test is marked as a changed line. If this change (add space to each line) needs to be made for some reason, it would want to be a separate commit