Skip to content

Commit dcfb52b

Browse files
rvbcldudstacksjb
authored andcommitted
test: finished writing tests for color.rs
1 parent 135d17e commit dcfb52b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/color.rs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,17 @@ mod tests {
4646

4747
#[test]
4848
fn test_blue_string() {
49-
let base_string = "TEST".blue().to_string();
49+
let str = "TEST";
5050
let test_string = blue_string("TEST");
5151

52-
assert_eq!(test_string, base_string);
52+
assert_eq!(test_string, str);
53+
}
54+
55+
#[test]
56+
fn test_purple_string() {
57+
let str = "TEST";
58+
let test_string = purple_string("TEST");
59+
60+
assert_eq!(test_string, str);
5361
}
5462
}

0 commit comments

Comments
 (0)