Skip to content

Commit

Permalink
add
Browse files Browse the repository at this point in the history
  • Loading branch information
pefish committed Oct 22, 2024
1 parent 267ace5 commit f8aa809
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions decimal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ func TestDecimalClass_AddForString(t *testing.T) {
if Decimal.MustStart("0b11").MustAddForString(2) != "5" {
t.Error()
}

b := Decimal.MustStart("0.000820179346176737").MustAdd("0.000433474346709516").MustAdd("0.000322133178438187").MustAdd("0.000326434100060436").MustAdd("0.00035142973275547").EndForString()

go_test_.Equal(t, "0.002253650704140346", b)
}

func TestDecimalClass_SubForString(t *testing.T) {
Expand Down

0 comments on commit f8aa809

Please sign in to comment.