Skip to content

Commit

Permalink
Fixed formatting of comments
Browse files Browse the repository at this point in the history
  • Loading branch information
AnirbanHalder654322 committed May 7, 2024
1 parent c8fa0bb commit a9fe7ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/by-util/test_ls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,6 @@ fn test_ls_long_symlink_color() {
/// using 'ln' to create a dangling symlink
/// Only tests whether the specific color of the target and the dangling_symlink are equal
/// Modified version of the "test_ls_long_symlink_color" test. Please see that for more details
//#[cfg(all(features = "ln"))]
#[test]
fn test_ls_long_dangling_symlink_color() {
let ts = TestScenario::new(util_name!());
Expand Down Expand Up @@ -1409,7 +1408,7 @@ fn test_ls_long_dangling_symlink_color() {

let stdout = result.stdout_str();

//Helper function to isolate the sequence in the string from where the ANSI C escape code begins
// Helper function to isolate the sequence in the string from where the ANSI C escape code begins
fn isolate_colored_sequence(stdout: &str) -> (Name, Name) {
let name = String::from("\x1b")
+ stdout
Expand Down Expand Up @@ -1437,7 +1436,8 @@ fn test_ls_long_dangling_symlink_color() {
assert_eq!(symlink_color, target_color);

// Helper function for capturing the color from the escape sequence and name of file
// Please see the helper function of the same name in "test_ls_long_symlink_color"
// Please see the helper function of the same name in "test_ls_long_symlink_color" for more
// details
fn capture_colored_string(input: &str) -> (Color, Name) {
let colored_name = Regex::new(r"(?:\x1b\[0m\x1b)?\[([0-9;]+)m(.+)\x1b\[0m").unwrap();
match colored_name.captures(input) {
Expand Down

0 comments on commit a9fe7ab

Please sign in to comment.