From f3c4f2d633134f2fb12060a8765c1779eeb30c4c Mon Sep 17 00:00:00 2001 From: Leon Hudak <33522493+leohhhn@users.noreply.github.com> Date: Fri, 12 Jan 2024 17:30:32 +0100 Subject: [PATCH] docs(fix): remove leftover paragraph (#1529) ## Description This PR removes a leftover duplicate paragraph & fixes a typo.
Contributors' checklist... - [x] Added new tests, or not needed, or not feasible - [x] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [x] Updated the official documentation or not needed - [x] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [x] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md).
--- docs/concepts/gno-test.md | 5 ----- docs/reference/standard-library/std/testing.md | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/concepts/gno-test.md b/docs/concepts/gno-test.md index d264b00c7da..57eff8f39f0 100644 --- a/docs/concepts/gno-test.md +++ b/docs/concepts/gno-test.md @@ -88,9 +88,4 @@ Internally, a GnoVM instance is initialized to run the test, and, at that moment a blockchain-related context is injected into the GnoVM. Utilizing this context, the transaction sender, coins, block height, etc. can be mocked. -## Manipulating blockchain context in tests -Some functions in the `std` package are exclusively accessible in `_test.gno` -and `_filetest.gno` files. These are located in the `std` package, and their primary role -is to alter the blockchain context for test runs. - For detailed information on these functions, refer to their [reference page](../reference/standard-library/std/testing.md). diff --git a/docs/reference/standard-library/std/testing.md b/docs/reference/standard-library/std/testing.md index eb18c4bb1a0..8c9146c81a1 100644 --- a/docs/reference/standard-library/std/testing.md +++ b/docs/reference/standard-library/std/testing.md @@ -80,7 +80,7 @@ func TestIssueCoins(addr Address, coins Coins) Issues testing context **coins** to **addr**. #### Usage ```go -issue:= std.Coins{{"coin1", 100}, {"coin2", 200}} +issue := std.Coins{{"coin1", 100}, {"coin2", 200}} addr := "g1ecely4gjy0yl6s9kt409ll330q9hk2lj9ls3ec" std.TestIssueCoins(addr, issue) ```