Skip to content

Commit

Permalink
Simplify the text building in a unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeisler committed Nov 9, 2022
1 parent eac6577 commit c2f84cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/wasm/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/wrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ mod tests {
let green_hello = "\u{1b}[0m\u{1b}[32mHello\u{1b}[0m";
let blue_world = "\u{1b}[0m\u{1b}[34mWorld!\u{1b}[0m";
assert_eq!(
wrap(&(String::from(green_hello) + " " + blue_world), 6),
wrap(&format!("{} {}", green_hello, blue_world), 6),
vec![green_hello, blue_world],
);
}
Expand Down

0 comments on commit c2f84cf

Please sign in to comment.