From e35a453f761219e28c3676962bbe0badd38a02dd Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Sun, 16 May 2021 22:47:29 +0100 Subject: [PATCH] delete toml palettes --- src/palette.rs | 18 ------------------ .../basic/palettes/blueprint.toml | 1 - 2 files changed, 19 deletions(-) delete mode 100644 src/test-resources/basic/palettes/blueprint.toml diff --git a/src/palette.rs b/src/palette.rs index 20dc72f..57faf99 100644 --- a/src/palette.rs +++ b/src/palette.rs @@ -314,22 +314,4 @@ mod test { let expected = ImageReader::open(path).unwrap().decode().unwrap(); assert_eq!(output, expected); } - - #[test] - fn palette_from_toml() { - let output = Palette::from( - "blueprint", - include_str!("test-resources/basic/palettes/blueprint.toml") - ); - let expected = crate::mock::palette::default(); - assert_eq!(output, expected); - } - - #[test] - fn palette_to_toml() { - let intermediate = crate::mock::palette::intermediate(); - let output = toml::to_string(&intermediate).unwrap(); - let expected = include_str!("test-resources/basic/palettes/blueprint.toml"); - assert_eq!(&output, expected); - } } diff --git a/src/test-resources/basic/palettes/blueprint.toml b/src/test-resources/basic/palettes/blueprint.toml deleted file mode 100644 index 669d382..0000000 --- a/src/test-resources/basic/palettes/blueprint.toml +++ /dev/null @@ -1 +0,0 @@ -colours = [[0, 0, 0, 0], [0, 81, 104, 255], [118, 159, 155, 255], [155, 155, 155, 255]]