Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clbanning committed Feb 2, 2021
1 parent 2ee132b commit c918871
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions isvalid_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,17 @@ func TestXmlCheckIsValid(t *testing.T) {
if _, err := XmlIndent(m, "", " "); err == nil {
t.Fatal("XmlIndent err: nil")
}

ms := map[string]interface{}{
"one":1,
"not":"another",
}
fmt.Printf("%v\n", ms)
if _, err = Xml(ms); err != nil {
t.Fatal("Xml(ms) err:", err)
}

if _, err = XmlIndent(ms, "", " "); err != nil {
t.Fatal("XmlIndent(ms) err:", err)
}
}

0 comments on commit c918871

Please sign in to comment.