MCPcopy Create free account
hub / github.com/daniel-e/rustml / test_read_mnist_training_set

Function test_read_mnist_training_set

tests/lib.rs:26–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24
25#[test]
26fn 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

Callers

nothing calls this directly

Calls 1

from_fileFunction · 0.85

Tested by

no test coverage detected