diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-06-30 22:32:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-06-30 22:32:24 +0200 |
| commit | 17e89468847735df10381c47c46c7d82d33cc463 (patch) | |
| tree | b0ce55f7d62aac399717aac3ab5a76c981c66f65 /tests/typ/utility | |
| parent | 911b5818344e85a58da9db895a333d22484b7ae7 (diff) | |
Remove color literals (#39)
Diffstat (limited to 'tests/typ/utility')
| -rw-r--r-- | tests/typ/utility/color.typ | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/tests/typ/utility/color.typ b/tests/typ/utility/color.typ index 2e40828b..6523a08d 100644 --- a/tests/typ/utility/color.typ +++ b/tests/typ/utility/color.typ @@ -2,18 +2,21 @@ // Ref: false --- -// Check the output. -#test(rgb(0.0, 0.3, 0.7), #004db3) +// Compare both ways. +#test(rgb(0.0, 0.3, 0.7), rgb("004db3")) // Alpha channel. -#test(rgb(1.0, 0.0, 0.0, 0.5), #ff000080) +#test(rgb(1.0, 0.0, 0.0, 0.5), rgb("ff000080")) // Warning: 2:11-2:14 should be between 0.0 and 1.0 // Warning: 1:16-1:20 should be between 0.0 and 1.0 -#test(rgb(-30, 15.5, 0.5), #00ff80) +#test(rgb(-30, 15.5, 0.5), rgb("00ff80")) // Error: 11-15 missing argument: blue component -#test(rgb(0, 1), #00ff00) +#test(rgb(0, 1), rgb("00ff00")) + +// Error: 11-16 invalid color +#test(rgb("lol"), error) // Error: 3:11-3:11 missing argument: red component // Error: 2:11-2:11 missing argument: green component |
