Skip to content

Commit

Permalink
Add test for extended filename syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed May 7, 2017
1 parent e0c2041 commit 66bcd87
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions fitsio/src/fitsfile.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2243,4 +2243,15 @@ mod test {
let fptr: *const sys::fitsfile = unsafe { f.as_raw() };
assert!(!fptr.is_null());
}

#[test]
fn extended_filename_syntax() {
let filename = "../testdata/full_example.fits[TESTEXT]";
let f = FitsFile::open(filename).unwrap();
match f.fetch_hdu_info() {
Ok(HduInfo::TableInfo { .. }) => {}
Ok(HduInfo::ImageInfo { .. }) => panic!("Should be binary table"),
_ => panic!("ERROR!"),
}
}
}

0 comments on commit 66bcd87

Please sign in to comment.