mirror of
https://github.com/shopspring/decimal.git
synced 2024-11-23 04:40:49 +01:00
Fix some grammar, go vet issues
This commit is contained in:
parent
abf4647f0d
commit
d48ced5acf
1 changed files with 4 additions and 4 deletions
|
@ -1428,7 +1428,7 @@ func TestNullDecimal_Scan(t *testing.T) {
|
||||||
if !a.Valid {
|
if !a.Valid {
|
||||||
t.Errorf("%s is null", a.Decimal)
|
t.Errorf("%s is null", a.Decimal)
|
||||||
} else if !a.Decimal.Equals(expected) {
|
} else if !a.Decimal.Equals(expected) {
|
||||||
t.Errorf("%s does not equal to %s", a, expected)
|
t.Errorf("%v does not equal %v", a, expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1451,7 +1451,7 @@ func TestNullDecimal_Scan(t *testing.T) {
|
||||||
if !a.Valid {
|
if !a.Valid {
|
||||||
t.Errorf("%s is null", a.Decimal)
|
t.Errorf("%s is null", a.Decimal)
|
||||||
} else if !a.Decimal.Equals(expected) {
|
} else if !a.Decimal.Equals(expected) {
|
||||||
t.Errorf("%s does not equal to %s", a, expected)
|
t.Errorf("%v does not equal %v", a, expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1470,7 +1470,7 @@ func TestNullDecimal_Scan(t *testing.T) {
|
||||||
if !a.Valid {
|
if !a.Valid {
|
||||||
t.Errorf("%s is null", a.Decimal)
|
t.Errorf("%s is null", a.Decimal)
|
||||||
} else if !a.Decimal.Equals(expected) {
|
} else if !a.Decimal.Equals(expected) {
|
||||||
t.Errorf("%s does not equal to %s", a, expected)
|
t.Errorf("%v does not equal %v", a, expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1497,6 +1497,6 @@ func TestNullDecimal_Value(t *testing.T) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Errorf("NullDecimal(12.34).Value() failed with message: %s", err)
|
t.Errorf("NullDecimal(12.34).Value() failed with message: %s", err)
|
||||||
} else if value.(string) != expected {
|
} else if value.(string) != expected {
|
||||||
t.Errorf("%s does not equal to %s", a, expected)
|
t.Errorf("%v does not equal %v", a, expected)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue