mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 03:27:44 +00:00
use 'char' instead of 'str' for single character patterns
This commit is contained in:
parent
5af66753af
commit
f2074140ec
3 changed files with 4 additions and 4 deletions
|
@ -24,7 +24,7 @@ fn test_capitalize() {
|
|||
fn test_long_format() {
|
||||
let login = "root";
|
||||
let pw: Passwd = Passwd::locate(login).unwrap();
|
||||
let real_name = pw.user_info.replace("&", &pw.name.capitalize());
|
||||
let real_name = pw.user_info.replace('&', &pw.name.capitalize());
|
||||
let ts = TestScenario::new(util_name!());
|
||||
ts.ucmd().arg("-l").arg(login).succeeds().stdout_is(format!(
|
||||
"Login name: {:<28}In real life: {}\nDirectory: {:<29}Shell: {}\n\n",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue