Skip to content

Commit

Permalink
types: extend TestParseCurrency
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Mar 15, 2024
1 parent 28768ae commit 4c4baff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/currency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -747,5 +747,10 @@ func TestParseCurrency(t *testing.T) {
} else if !got.Equals(tt.want) {
t.Errorf("ParseCurrency(%v) = %d, want %d", tt.s, got, tt.want)
}
if err := got.UnmarshalText([]byte(tt.s)); (err != nil) != tt.wantErr {
t.Errorf("UnmarshalText(%v) error = %v, wantErr %v", tt.s, err, tt.wantErr)
} else if !got.Equals(tt.want) {
t.Errorf("UnmarshalText(%v) = %d, want %d", tt.s, got, tt.want)
}
}
}

0 comments on commit 4c4baff

Please sign in to comment.