Skip to content

simplify tests #908

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

Merged
merged 1 commit into from
Apr 5, 2016
Merged

simplify tests #908

merged 1 commit into from
Apr 5, 2016

Conversation

matklad
Copy link
Member

@matklad matklad commented Apr 4, 2016

No more write_mode everywhere :)

* change layout so that test group `foo` has source files in
`test/foo/source` and target files in `test/foo/target`.

* use significant comments to specify write mode instead of threading
  Option<WriteMode>
.with_file_name(replace_name)
.into_os_string()
.into_string()
.unwrap()
Copy link
Member Author

Choose a reason for hiding this comment

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

This if branch does not work for all possible file names because it manipulates strings and not Paths, but I think this is OK: we are not evil enough to create edge cases for ourselves =)

@nrc
Copy link
Member

nrc commented Apr 5, 2016

Thanks!

@nrc nrc merged commit ea76677 into rust-lang:master Apr 5, 2016
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