Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
b684b1b8
Commit
b684b1b8
authored
Sep 22, 2018
by
0mkar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update remix-tests readme
parent
a9b713db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
README.md
remix-tests/README.md
+10
-9
No files found.
remix-tests/README.md
View file @
b684b1b8
...
...
@@ -44,21 +44,22 @@ contract MyTest {
```
Available special functions:
*
`beforeEach`
- runs before each test
*
`beforeAll`
- runs before all tests
*
`beforeEach
()
`
- runs before each test
*
`beforeAll
()
`
- runs before all tests
#### Assert library
Available functions:
`Assert.ok(value, message)`
`Assert.equal(value1, value2, message)`
`Assert.notEqual(value1, value2, message)`
supported values currently are:
`bool`
`uint`
`int`
`address`
`bytes32`
| Available functions | Supported types |
| ------------- | ------------- |
|
`Assert.ok()`
|
`bool`
|
|
`Assert.equal()`
|
`uint`
,
`int`
,
`bool`
,
`address`
,
`bytes32`
,
`string`
|
|
`Assert.notEqual()`
|
`uint`
,
`int`
,
`bool`
,
`address`
,
`bytes32`
,
`string`
|
|
`Assert.greaterThan()`
|
`uint`
,
`int`
|
|
`Assert.lesserThan()`
|
`uint`
,
`int`
|
### 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:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment