hyprlang/tests/config/invalid-numbers.conf
Eduard Tykhoniuk 5b175c9704
config: Return an error on invalid hex values. (#54)
* config.cpp: fix parsing invalid hex
Instead of crashing on an invalid hex, return an error.

* config: return an error on an invalid hex value

* cleanup

* style: add references for catching exceptions

* style: ignore `std::out_of_range`
2024-09-02 00:45:17 +02:00

15 lines
280 B
Text

# Every number/color in this file is invalid
invalidHex = 0x1Q
emptyHex = 0x
hugeHex = 0xFFFFFFFFFFFFFFFF
invalidInt = 1A
emptyInt =
invalidColor = rgb(ABCDEQ)
invalidFirstCharColor = rgb(QABCDE)
invalidColorAlpha = rgba(9ABCDEFQ)
invalidFirstCharColorAlpha = rgba(Q9ABCDEF)