Skip to content

Commit b9ffc53

Browse files
committed
Merge branch 'rr-test-framework' of github.com:ProvableHQ/leo-docs-source into rr-test-framework
2 parents 2e319c4 + 29751a0 commit b9ffc53

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

documentation/testing/01_test_framework.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ transition test_simple_addition_fail() {
6464

6565
## Leo types
6666

67-
Developers can test that Record and struct fields match their expected values. In `example_program.leo`, a Record is minted transition function shown here:
67+
Developers can test that record and struct fields match their expected values. In `example_program.leo`, a record is minted transition function shown here:
6868

6969
```Leo
7070
record Example {
@@ -96,7 +96,7 @@ Each test file is required to have at least one transition function.
9696

9797

9898
## Using interpreted tests for modelling on-chain state
99-
While the testing framework cannot access on-chain state from either `testnet` or `mainnet`, developers can simulate on-chain state using interpreted tests. Developers are able to await `Future`s and update mappings using interpreted tests. When using interpreted tests, the `transition` or `function` keyword is replaced with the `script` keyword.
99+
While the testing framework cannot access on-chain state from either `testnet` or `mainnet`, developers can simulate on-chain state in `script`s. A script is interpreted Leo code in which developers are able to await `Future`s and update mappings using interpreted tests. When using interpreted tests, the `transition` or `function` keyword is replaced with the `script` keyword.
100100

101101
```Leo
102102
@test
@@ -114,7 +114,7 @@ script test_async() {
114114
```
115115

116116
:::info
117-
External transitions -- async or not -- may be called from native or interpreted tests, but external async functions may only be called directly from interpreted tests.
117+
External transitions -- async or not -- may be called from test transitions or scripts, but external async functions may only be called directly from scripts.
118118
:::
119119

120120

0 commit comments

Comments
 (0)