Skip to content

Commit

Permalink
Coinbase code improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
cranktakular committed Feb 27, 2024
1 parent 5f813e3 commit c7d7ac2
Show file tree
Hide file tree
Showing 6 changed files with 574 additions and 930 deletions.
13 changes: 13 additions & 0 deletions exchanges/asset/asset_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,19 @@ func TestString(t *testing.T) {
}
}

func TestUpper(t *testing.T) {
t.Parallel()
a := Spot
if a.Upper() != "SPOT" {
t.Fatal("TestUpper returned an unexpected result")
}

a = 0
if a.Upper() != "" {
t.Fatal("TestUpper returned an unexpected result")
}
}

func TestToStringArray(t *testing.T) {
t.Parallel()
a := Items{Spot, Futures}
Expand Down
Loading

0 comments on commit c7d7ac2

Please sign in to comment.