summaryrefslogtreecommitdiff
path: root/_test/test_flowsequencekey.py
diff options
context:
space:
mode:
Diffstat (limited to '_test/test_flowsequencekey.py')
-rw-r--r--_test/test_flowsequencekey.py25
1 files changed, 25 insertions, 0 deletions
diff --git a/_test/test_flowsequencekey.py b/_test/test_flowsequencekey.py
new file mode 100644
index 0000000..6f6d7db
--- /dev/null
+++ b/_test/test_flowsequencekey.py
@@ -0,0 +1,25 @@
+# coding: utf-8
+
+"""
+test flow style sequences as keys roundtrip
+
+"""
+
+# import pytest
+# import ruamel.yaml
+
+from roundtrip import round_trip # , dedent, round_trip_load, round_trip_dump
+
+
+class TestFlowStyleSequenceKey:
+ def test_so_39595807(self):
+ round_trip("""
+ %YAML 1.2
+ ---
+ [2, 3, 4]:
+ a:
+ - 1
+ - 2
+ b: Hello World!
+ c: 'VoilĂ !'
+ """, preserve_quotes=True, explicit_start=True, version=(1, 2))