Skip to content

Commit

Permalink
add test case for unix newline
Browse files Browse the repository at this point in the history
  • Loading branch information
maxomatic458 committed Jan 27, 2024
1 parent cf9f6dc commit 23a0781
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/menu/menu_functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,6 +623,7 @@ mod tests {
#[rstest]
#[case("foobar", 6, None, false, "foobar", 6)]
#[case("foo\r\nbar", 5, None, false, "foo\r\n", 5)]
#[case("foo\nbar", 4, None, false, "foo\n", 4)]
#[case("foobar", 6, None, true, "", 6)]
#[case("foobar", 3, Some("foobar"), true, "", 3)]
#[case("foobar", 6, Some("foo"), true, "bar", 6)]
Expand Down

0 comments on commit 23a0781

Please sign in to comment.