Skip to content

Commit

Permalink
Add regression test for v3.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kislyuk committed Apr 15, 2024
1 parent 50c3db3 commit 1bd0478
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ def test_yaml_merge(self):
self.run_yq("a: &b\n c: d\ne:\n <<: *b\n g: h", ["-y", "."]), "a:\n c: d\ne:\n c: d\n g: h\n"
)

def test_yaml_floats(self):
self.assertEqual(self.run_yq("test: 0.0004", ["-y", "."]), "test: 0.0004\n")

def test_yaml_1_2(self):
self.assertEqual(self.run_yq("11:12:13", ["."]), "")
self.assertEqual(self.run_yq("11:12:13", ["-y", "."]), "'11:12:13'\n")
Expand Down

0 comments on commit 1bd0478

Please sign in to comment.