Skip to content

Commit

Permalink
linereader.rs add basic new LineReader tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jtmoon79 committed Jan 15, 2023
1 parent cda6e99 commit b7a25d0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/tests/linereader_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,17 @@ fn new_LineReader(
}
}

#[test]
fn test_new_LineReader_1() {
new_LineReader(&NTF_NL_1_PATH, 1024);
}

#[test]
#[should_panic]
fn test_new_LineReader_2_bad_path_panics() {
new_LineReader(&FPath::from("THIS/PATH_DOES/NOT///EXIST!!!"), 1024);
}

// -------------------------------------------------------------------------------------------------

/// loop on `LineReader.find_line` until it is done
Expand Down

0 comments on commit b7a25d0

Please sign in to comment.