We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4e13c2 commit 97a9e55Copy full SHA for 97a9e55
resources/file-with-blank-line-at-the-beginning
@@ -0,0 +1,2 @@
1
+
2
+Blank line above!
src/tests.rs
@@ -454,3 +454,12 @@ fn test_indexed() {
454
);
455
}
456
457
458
+#[test]
459
+fn test_file_with_blank_line_at_the_beginning() {
460
+ let file = File::open("resources/file-with-blank-line-at-the-beginning").unwrap();
461
+ let mut reader = EasyReader::new(file).unwrap();
462
+ reader.eof();
463
464
+ while let Some(_line) = reader.prev_line().unwrap() {}
465
+}
0 commit comments