Skip to content

Commit

Permalink
[Experiments][Added] YAML booleans test
Browse files Browse the repository at this point in the history
  • Loading branch information
set-soft committed Jan 8, 2025
1 parent 379f6e4 commit 1814c17
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
7 changes: 7 additions & 0 deletions experiments/YAML_Boolean/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import io
import yaml

with open('test.yaml') as f:
txt = f.read()
data = yaml.safe_load(io.StringIO(txt))
print(data)
16 changes: 16 additions & 0 deletions experiments/YAML_Boolean/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# a: y
# b: Y
c: yeS
d: Yes
e: YES
# f: n
# g: N
h: no
i: No
j: NO
k: on
l: On
m: ON
n: off
o: Off
p: OFF

0 comments on commit 1814c17

Please sign in to comment.