#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:
ljacqu
2016-01-28 10:38:44 +01:00
parent c626521dc8
commit dedb3fce26
3 changed files with 122 additions and 25 deletions
@@ -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: []