Skip to content

Commit

Permalink
Removed GDAL 3.5 data types from test, for simplicity.
Browse files Browse the repository at this point in the history
  • Loading branch information
metasim committed Oct 19, 2022
1 parent 962f79d commit 3b74544
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/raster/tests.rs
Expand Up @@ -905,7 +905,7 @@ fn test_gdal_data_type() {
assert_eq!(t.bits(), t.bytes() * 8, "{}", t);
let name = t.name().unwrap();
match t.gdal_type() {
GDT_Byte | GDT_UInt16 | GDT_Int16 | GDT_UInt32 | GDT_Int32 | GDT_UInt64 | GDT_Int64 => {
GDT_Byte | GDT_UInt16 | GDT_Int16 | GDT_UInt32 | GDT_Int32 => {
assert!(t.is_integer(), "{}", &name);
assert!(!t.is_floating(), "{}", &name);
}
Expand All @@ -916,10 +916,10 @@ fn test_gdal_data_type() {
o => panic!("unknown type ordinal '{}'", o),
}
match t.gdal_type() {
GDT_Byte | GDT_UInt16 | GDT_UInt32 | GDT_UInt64 => {
GDT_Byte | GDT_UInt16 | GDT_UInt32 => {
assert!(!t.is_signed(), "{}", &name);
}
GDT_Int16 | GDT_Int32 | GDT_Int64 | GDT_Float32 | GDT_Float64 => {
GDT_Int16 | GDT_Int32 | GDT_Float32 | GDT_Float64 => {
assert!(t.is_signed(), "{}", &name);
}
o => panic!("unknown type ordinal '{}'", o),
Expand Down

0 comments on commit 3b74544

Please sign in to comment.