Skip to content

Commit

Permalink
updated the toml_test.go
Browse files Browse the repository at this point in the history
Signed-off-by: Briheet Singh Yadav <[email protected]>
  • Loading branch information
briheet committed Aug 6, 2024
1 parent 3769ce5 commit b3d37bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/package/toml_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,13 @@ func TestInitEmptyPkg(t *testing.T) {
expected_toml = strings.ReplaceAll(expected_toml, "\r\n", "\n")
got_data = strings.ReplaceAll(got_data, "\r\n", "\n")

expected_toml = strings.TrimSpace(expected_toml)
got_data = strings.TrimSpace(got_data)

// Ensure there's no extra newlines between sections
expected_toml = strings.Join(strings.Fields(expected_toml), "\n")
got_data = strings.Join(strings.Fields(got_data), "\n")

fmt.Printf("expected_toml: '%q'\n", expected_toml)

fmt.Printf("modfile: '%q'\n", got_data)
Expand Down

0 comments on commit b3d37bf

Please sign in to comment.