()
| 1046 | |
| 1047 | #[test] |
| 1048 | fn test_image_to_file() { |
| 1049 | |
| 1050 | let img = RgbImage::from_file("datasets/testing/tree.png").unwrap(); |
| 1051 | assert!(img.to_file("/tmp/ab.jpg")); |
| 1052 | // the following test should fail because the directory does not |
| 1053 | // exist |
| 1054 | assert!(!img.to_file("datasets/nulldir/ab.jpg")); |
| 1055 | } |
| 1056 | |
| 1057 | #[test] |
| 1058 | fn test_font() { |
nothing calls this directly
no test coverage detected