()
| 24 | |
| 25 | #[test] |
| 26 | fn test_read_mnist_training_set() { |
| 27 | |
| 28 | let mut p = home_dir().unwrap(); |
| 29 | p.push(Path::new(MNIST_PATH)); |
| 30 | p.push(Path::new("train-images-idx3-ubyte.gz")); |
| 31 | |
| 32 | let mut gz = GzipData::from_file(p.as_path().to_str().unwrap()).unwrap(); |
| 33 | let mut v: Vec<u8> = Vec::new(); |
| 34 | assert_eq!(gz.read_to_end(&mut v).unwrap(), 47040016); |
| 35 | } |
| 36 |
nothing calls this directly
no test coverage detected