Skip to content

Commit

Permalink
feat: match on bubs tut
Browse files Browse the repository at this point in the history
  • Loading branch information
jcstein committed Dec 19, 2023
1 parent 9ec6a92 commit ee0ac74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions developers/deploy-on-bubs.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ contract CounterTest is Test {
This file performs unit testing on the contract we created in the previous
section. Here's what the test is doing:

The contract includes a public "Counter" type variable called "counter".
- The contract includes a public "Counter" type variable called "counter".
In the `setUp` function, it initializes a new instance of the "Counter"
contract and sets the "number" variable to 0.

There are two test functions in the contract: `testIncrement` and
- There are two test functions in the contract: `testIncrement` and
`testSetNumber`.

The `testIncrement` function tests the "increment" function of the
- The `testIncrement` function tests the "increment" function of the
"Counter" contract by calling it and then asserting that the "number" in
the "Counter" contract is 1. It verifies if the increment operation
correctly increases the number by one.

The `testSetNumber` function is more generic. It takes an unsigned integer
- The `testSetNumber` function is more generic. It takes an unsigned integer
argument 'x' and tests the "setNumber" function of the "Counter" contract.
After calling the "setNumber" function with 'x', it asserts that the
"number" in the "Counter" contract is equal to 'x'. This verifies that the
Expand Down

0 comments on commit ee0ac74

Please sign in to comment.