paste: Handle unicode delimiters

This commit is contained in:
Zachary Dremann
2022-01-30 23:00:49 -05:00
parent 7b3cfcf708
commit fa44957a63
2 changed files with 18 additions and 4 deletions
+12
View File
@@ -60,6 +60,18 @@ static EXAMPLE_DATA: &[TestData] = &[
ins: &["1\na\n", "2\nb\n"],
out: "1 2\na b\n",
},
TestData {
name: "multibyte-delim",
args: &["-d", "💣"],
ins: &["1\na\n", "2\nb\n"],
out: "1💣2\na💣b\n",
},
TestData {
name: "multibyte-delim-serial",
args: &["-d", "💣", "-s"],
ins: &["1\na\n", "2\nb\n"],
out: "1💣a\n2💣b\n",
},
];
#[test]