Skip to content
Snippets Groups Projects
Commit 743f6d11 authored by Nicolas B's avatar Nicolas B
Browse files

Add zstandard to tests

parent d9cf8d77
No related branches found
No related tags found
No related merge requests found
...@@ -19,10 +19,12 @@ fn test_gzip_and_zlib_encoded_and_raw_are_the_same() { ...@@ -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 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 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 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(); let c = read_from_file(&Path::new("assets/tiled_csv.tmx")).unwrap();
assert_eq!(z, g); assert_eq!(z, g);
assert_eq!(z, r); assert_eq!(z, r);
assert_eq!(z, c); assert_eq!(z, c);
assert_eq!(z, zstd);
if let LayerData::Finite(tiles) = &c.layers[0].tiles { if let LayerData::Finite(tiles) = &c.layers[0].tiles {
assert_eq!(tiles.len(), 100); assert_eq!(tiles.len(), 100);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment