Skip to content

Commit 9e6de1d

Browse files
committed
fixed windows test
1 parent 52a94b6 commit 9e6de1d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tmc-langs-plugins/src/tmc_zip.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -326,12 +326,7 @@ mod test {
326326
#[cfg(windows)]
327327
#[test]
328328
fn windows_paths_get_converted() {
329-
let win_path = PathBuf::from(r"tests\data\dir");
330-
let zipped = zip(
331-
EverythingIsStudentFilePolicy::new(&win_path).unwrap(),
332-
&win_path,
333-
)
334-
.unwrap();
329+
let zipped = file_util::read_file("tests/data/zip/compressed.zip").unwrap();
335330
let mut ziparch = ZipArchive::new(Cursor::new(zipped)).unwrap();
336331
assert!(ziparch.len() > 0);
337332
for i in 0..ziparch.len() {

0 commit comments

Comments
 (0)