Skip to content

Commit

Permalink
Merge pull request #102 from nicoxxl/zstd-to-0.9
Browse files Browse the repository at this point in the history
update Zstd to 0.9
  • Loading branch information
bjorn authored Dec 23, 2021
2 parents d9cf8d7 + 61e4412 commit e5a1c79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ path = "examples/main.rs"
base64 = "0.10"
xml-rs = "0.8"
libflate = "0.1.18"
zstd = { version = "0.5", optional = true }
zstd = { version = "0.9", optional = true }
2 changes: 2 additions & 0 deletions tests/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ fn test_gzip_and_zlib_encoded_and_raw_are_the_same() {
let z = read_from_file(&Path::new("assets/tiled_base64_zlib.tmx")).unwrap();
let g = read_from_file(&Path::new("assets/tiled_base64_gzip.tmx")).unwrap();
let r = read_from_file(&Path::new("assets/tiled_base64.tmx")).unwrap();
let zstd = read_from_file(&Path::new("assets/tiled_base64_zstandard.tmx")).unwrap();
let c = read_from_file(&Path::new("assets/tiled_csv.tmx")).unwrap();
assert_eq!(z, g);
assert_eq!(z, r);
assert_eq!(z, c);
assert_eq!(z, zstd);

if let LayerData::Finite(tiles) = &c.layers[0].tiles {
assert_eq!(tiles.len(), 100);
Expand Down

0 comments on commit e5a1c79

Please sign in to comment.