Skip to content

Commit

Permalink
Added two more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
mrz1836 committed Jul 2, 2020
1 parent 70222dd commit a5bca79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions currency_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ func TestConvertFloatToIntBSV(t *testing.T) {
{0.00000001, 1, false},
{0.00000111, 111, false},
{-0.00000111, -111, false},
{math.Inf(1), -111, true},
}

// Test all
Expand Down Expand Up @@ -537,6 +538,7 @@ func TestConvertPriceToSatoshis(t *testing.T) {
{1000000, 1, 100, false},
{0, 1, 0, true},
{1, 0, 0, true},
{math.Inf(1), 0, 0, true},
}

// Test all
Expand Down

0 comments on commit a5bca79

Please sign in to comment.