Skip to content

Commit

Permalink
Tidy gno.mods; add a Sprintf %f test.
Browse files Browse the repository at this point in the history
  • Loading branch information
wyhaines committed Oct 1, 2024
1 parent 34821be commit 70f84b9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions examples/gno.land/p/demo/math/rand/isaac/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
module gno.land/p/demo/math/rand/isaac

require (
gno.land/p/demo/entropy v0.0.0-latest
gno.land/p/demo/math/rand/xorshiftr128plus v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
)
5 changes: 5 additions & 0 deletions examples/gno.land/p/demo/math/rand/xorshift64star/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
module gno.land/p/demo/math/rand/xorshift64star

require (
gno.land/p/demo/entropy v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
)
5 changes: 5 additions & 0 deletions examples/gno.land/p/demo/math/rand/xorshiftr128plus/gno.mod
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
module gno.land/p/demo/math/rand/xorshiftr128plus

require (
gno.land/p/demo/entropy v0.0.0-latest
gno.land/p/demo/ufmt v0.0.0-latest
)
1 change: 1 addition & 0 deletions examples/gno.land/p/demo/ufmt/ufmt_test.gno
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func TestSprintf(t *testing.T) {
{"uint16 [%d]", []interface{}{uint16(16)}, "uint16 [16]"},
{"uint32 [%d]", []interface{}{uint32(32)}, "uint32 [32]"},
{"uint64 [%d]", []interface{}{uint64(64)}, "uint64 [64]"},
{"float64 [%f]", []interface{}{float64(64.0)}, "float64 [64.0]"},
{"bool [%t]", []interface{}{true}, "bool [true]"},
{"bool [%t]", []interface{}{false}, "bool [false]"},
{"no args", nil, "no args"},
Expand Down

0 comments on commit 70f84b9

Please sign in to comment.