Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2022-01-24 22:44:26 +03:00
parent 8a71466ba4
commit 88a4c1641d
48 changed files with 200 additions and 137 deletions

View File

@@ -61,9 +61,8 @@ func TestMergeString(t *testing.T) {
mp["bool"] = true
s := &str{}
t.Logf("merge with true")
if err := rutil.Merge(s, mp, rutil.Tags([]string{"json"})); err != nil {
t.Fatal(err)
t.Fatalf("merge with true err: %v", err)
}
if s.Bool != "true" {
@@ -71,9 +70,8 @@ func TestMergeString(t *testing.T) {
}
mp["bool"] = false
t.Logf("merge with false")
if err := rutil.Merge(s, mp, rutil.Tags([]string{"json"})); err != nil {
t.Fatal(err)
t.Fatalf("merge with falst err: %v", err)
}
if s.Bool != "false" {