Skip to content

Commit

Permalink
Add golden tests for fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kekavc24 committed May 30, 2024
1 parent f3eb1c4 commit 9efed03
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/testdata/input/ignore_key_order.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
IGNORES KEY ORDER
---
Z: 1
D: 2
F: 3
---
- [update, ['A'], 4]
6 changes: 6 additions & 0 deletions test/testdata/input/respect_key_order.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
RESPECTS THE KEY ORDER
---
A: first
C: third
---
- [update, [B], second]
4 changes: 4 additions & 0 deletions test/testdata/output/ignore_key_order.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Z: 1
D: 2
F: 3
A: 4
3 changes: 3 additions & 0 deletions test/testdata/output/respect_key_order.golden
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
A: first
B: second
C: third

0 comments on commit 9efed03

Please sign in to comment.