Skip to content

Commit

Permalink
add test for classes! macro trailing comma support
Browse files Browse the repository at this point in the history
  • Loading branch information
basro committed Dec 15, 2024
1 parent be6597f commit 6409256
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stylance/tests/test_classes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,9 @@ fn test_classes_macro_many() {
"one two four five six seven eight"
);
}

#[test]
fn test_classes_macro_trailing_comma() {
use stylance::classes;
assert_eq!(classes!("one", "two", "three",), "one two three");
}

0 comments on commit 6409256

Please sign in to comment.