Files
compiler-explorer/test/example-config/cases.test.properties
Kale Blankenship e8c754d830 Avoid parsing version properties as numbers
Parsing versions such as "1.10" results in a "1.1" float, incorrectly
changing the value.

Fixes #1980
2020-05-17 15:20:06 -04:00

25 lines
613 B
Properties

# Should ignore comments...
#commentedProperty=This is not expected
exampleProperty=value
emptyProperty=
numericPropertyPositive=42
numericPropertyZero=0
numericPropertyNegative=-11
floatPropertyPositive=3.14
floatPropertyNegative=-9000.0
commaAsDecimalProperty=3,14
stringPropertyNumberLike=- 97
truePropertyYes=yes
truePropertyTrue=true
stringPropertyYes=Yes
stringPropertyTrue=True
falsePropertyNo=no
falsePropertyFalse=false
stringPropertyNo=No
stringPropertyFalse=False
badLineIfYouSeeThisWithAnErrorItsOk
001string=001
0985string=0985
compiler.example110.semver=1.10
libs.example.versions.010.version=0.10