Skip to content

Commit

Permalink
test(style_parser): add test for parsing rgba color with alpha value …
Browse files Browse the repository at this point in the history
…0.25
  • Loading branch information
devaryakjha committed Dec 19, 2024
1 parent fe6cef1 commit 70c84a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/tagflow/test/src/style/style_parser_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ void main() {
StyleParser.parseColor('rgba(0,0,0,0.5)'),
const Color(0x80000000),
);
expect(
StyleParser.parseColor('rgba(0,0,0,0.25)'),
const Color(0x40000000),
);
});

test('parses named colors', () {
Expand Down

0 comments on commit 70c84a4

Please sign in to comment.