Skip to content

Commit

Permalink
Fix WktWriter constructor in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreilles committed Aug 12, 2023
1 parent 0b7abc8 commit 8a813b7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions geozero/src/wkb/wkb_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -788,9 +788,7 @@ mod test {

// Process all dimensions
let mut wkt_data: Vec<u8> = Vec::new();
let mut writer = WktWriter::new(&mut wkt_data);
writer.dims.z = true;
writer.dims.m = true;
let mut writer = WktWriter::with_dims(&mut wkt_data, CoordDimensions::xyzm());
assert!(process_spatialite_geom(&mut ewkb.as_slice(), &mut writer).is_ok());
assert_eq!(
std::str::from_utf8(&wkt_data).unwrap(),
Expand Down Expand Up @@ -824,9 +822,7 @@ mod test {
assert!(info.has_m);

let mut wkt_data: Vec<u8> = Vec::new();
let mut writer = WktWriter::new(&mut wkt_data);
writer.dims.z = true;
writer.dims.m = true;
let mut writer = WktWriter::with_dims(&mut wkt_data, CoordDimensions::xyzm());
assert!(process_spatialite_geom(&mut ewkb.as_slice(), &mut writer).is_ok());
assert_eq!(
std::str::from_utf8(&wkt_data).unwrap(),
Expand Down

0 comments on commit 8a813b7

Please sign in to comment.