Commit b684b1b8 authored by 0mkar's avatar 0mkar

Update remix-tests readme

parent a9b713db
...@@ -44,21 +44,22 @@ contract MyTest { ...@@ -44,21 +44,22 @@ contract MyTest {
``` ```
Available special functions: Available special functions:
* `beforeEach` - runs before each test * `beforeEach()` - runs before each test
* `beforeAll` - runs before all tests * `beforeAll()` - runs before all tests
#### Assert library #### Assert library
Available functions: | Available functions | Supported types |
`Assert.ok(value, message)` | ------------- | ------------- |
`Assert.equal(value1, value2, message)` | `Assert.ok()` | `bool` |
`Assert.notEqual(value1, value2, message)` | `Assert.equal()` | `uint`, `int`, `bool`, `address`, `bytes32`, `string` |
| `Assert.notEqual()` | `uint`, `int`, `bool`, `address`, `bytes32`, `string` |
supported values currently are: `bool` `uint` `int` `address` `bytes32` | `Assert.greaterThan()` | `uint`, `int` |
| `Assert.lesserThan()` | `uint`, `int` |
### Command Line ### Command Line
Remix-Tests will assume the tests will files whose name end with "_test.sol". e.g `simple_storage_test.sol` Remix-Tests will assume the tests will files whose name end with `"_test.sol"`. e.g `simple_storage_test.sol`
Usage: Usage:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment