-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: moul <[email protected]>
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,28 @@ | ||
# test for https://github.com/gnolang/gno/pull/3003 | ||
# Test for #3003, #2911. | ||
|
||
gnoland start | ||
|
||
# official params (right now they makes sense to be tested in a txtar to validate that a default "gnoland" initialization will have default values) | ||
# Query and validate official parameters. | ||
# These parameters should ideally be tested in a txtar format to ensure that a | ||
# default initialization of "gnoland" provides the expected default values. | ||
|
||
# Verify the default chain domain parameter for Gno.land | ||
gnokey query params/vm/gno.land/r/sys/params.vm.chain_domain.string | ||
stdout 'data: "gno.land"$' | ||
|
||
# test params | ||
# Test custom parameters to confirm they return the expected values and types. | ||
|
||
gnokey query params/vm/gno.land/r/sys/params.test.foo.string | ||
stdout 'data: "bar"$' | ||
|
||
gnokey query params/vm/gno.land/r/sys/params.test.foo.int64 | ||
stdout 'data: "-1337"' | ||
|
||
gnokey query params/vm/gno.land/r/sys/params.test.foo.uint64 | ||
stdout 'data: "42"' | ||
|
||
gnokey query params/vm/gno.land/r/sys/params.test.foo.bool | ||
stdout 'data: true' | ||
# XXX: consider adding a test with bytes | ||
|
||
# TODO: Consider adding a test case for a byte array parameter | ||
|