Skip to content

Commit

Permalink
chore: codecov (more)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasRooney authored and daveshanley committed Jul 8, 2024
1 parent 2277a20 commit e6391c4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/nodes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ func TestCreateEmptySequenceNode(t *testing.T) {
assert.Len(t, s.Content, 0)
}

func TestCreateEmptyScalarNode(t *testing.T) {
s := CreateEmptyScalarNode()
assert.Equal(t, "!!null", s.Tag)
assert.Equal(t, "", s.Value)
}

func TestCreateFloatNode(t *testing.T) {
f := CreateFloatNode("3.14")
assert.Equal(t, "!!float", f.Tag)
Expand Down

0 comments on commit e6391c4

Please sign in to comment.