@@ -1372,7 +1372,7 @@ mod test {
1372 .to_string();
1372 .to_string();
1373 let expectation = std::fs::read_to_string(ref_path).unwrap();
1373 let expectation = std::fs::read_to_string(ref_path).unwrap();
1374 assert_eq!(text[..], expectation[..]);
1374 assert_eq!(text[..], expectation[..]);
1377 ($name:ident, $label:expr) => {
1377 ($name:ident, $label:expr) => {
1378 decode!($name, $label, $label);
1378 decode!($name, $label, $label);
@@ -1389,11 +1389,11 @@ mod test {
1389 let ref_path = base_path.join(format!("{}_out_ref.txt", $label));
1389 let ref_path = base_path.join(format!("{}_out_ref.txt", $label));
1390 assert!(path.exists());
1390 assert!(path.exists());
1391 assert!(ref_path.exists());
1391 assert!(ref_path.exists());
1393 let text = Rope::from_str(&std::fs::read_to_string(path).unwrap());
1393 let text = Rope::from_str(&std::fs::read_to_string(path).unwrap());
1394 let mut buf: Vec<u8> = Vec::new();
1394 let mut buf: Vec<u8> = Vec::new();
1395 helix_lsp::block_on(to_writer(&mut buf, encoding, &text)).unwrap();
1395 helix_lsp::block_on(to_writer(&mut buf, encoding, &text)).unwrap();
1397 let expectation = std::fs::read(ref_path).unwrap();
1397 let expectation = std::fs::read(ref_path).unwrap();
1398 assert_eq!(buf, expectation);
1398 assert_eq!(buf, expectation);