#450 Add integration test for potentially difficult values
- Ensure that edge cases such as backslashes, apostrophes and new lines are handled properly by the YAML writer & reader
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Test config file with some "difficult" values
|
||||
|
||||
test:
|
||||
duration: 20.102
|
||||
systemName: 'A ''test'' name'
|
||||
sample:
|
||||
ratio:
|
||||
limit: -41.8
|
||||
fields:
|
||||
- Australia\
|
||||
- ' Burundi'''
|
||||
- 'Colombia?
|
||||
|
||||
'''''
|
||||
# The last element above represents "Colombia?\n''"
|
||||
version: -1337
|
||||
features:
|
||||
boring:
|
||||
# YAML allows both "yes"/"no" and "true"/"false" for expressing booleans
|
||||
skip: no
|
||||
colors:
|
||||
- 'it''s a difficult string!'
|
||||
- |
|
||||
gray
|
||||
with new lines
|
||||
# dustLevel: 0.81 <-- missing property triggering rewrite
|
||||
cool:
|
||||
enabled: yes
|
||||
options: []
|
||||
Reference in New Issue
Block a user