Skip to content

Commit

Permalink
Add unit test for gutter colors
Browse files Browse the repository at this point in the history
  • Loading branch information
timhillgit committed Dec 11, 2023
1 parent d3f6d22 commit 22751f4
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/highlighting/theme_set.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,25 @@ mod tests {
r: 0xc0,
g: 0xc5,
b: 0xce,
a: 0xFF,
a: 0xff,
}
);
assert_eq!(
theme.settings.gutter_foreground.unwrap(),
Color {
r: 0x65,
g: 0x73,
b: 0x7e,
a: 0xff,
}
);
assert_eq!(
theme.settings.gutter.unwrap(),
Color {
r: 0x34,
g: 0x3d,
b: 0x46,
a: 0xff,
}
);
// unreachable!();
Expand Down

0 comments on commit 22751f4

Please sign in to comment.