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

std::rt::io has moved to std::io #14

Merged
merged 2 commits into from Nov 27, 2013
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Updated the tests

  • Loading branch information
Ogeon committed Nov 27, 2013
commit e87976ef410c83df62e33ace27b3f8c135bab7e0
7 lib.rs
@@ -250,16 +250,15 @@ pub fn store_png(img: &Image, path: &Path) -> Result<(),~str> {

#[cfg(test)]
mod test {
use std::rt::io;
use std::rt::io::Reader;
use std::rt::io::file;
use std::io;
use std::io::File;
use std::vec;
use super::{ffi, load_png, store_png, RGB8, Image};

#[test]
#[fixed_stack_segment]
fn test_valid_png() {
let mut reader = match File::open_mode(& &"test.png", io::Open, io::Read) {
let mut reader = match File::open_mode(&Path::new("test.png"), io::Open, io::Read) {
Some(r) => r,
None => fail!("could not open file"),
};
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.