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
55357f18
Unverified
Commit
55357f18
authored
Nov 30, 2018
by
Liana Husikyan
Committed by
GitHub
Nov 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update tests.sol.js
warnings
parent
50c1cb2d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
tests.sol.js
remix-tests/sol/tests.sol.js
+8
-6
No files found.
remix-tests/sol/tests.sol.js
View file @
55357f18
module
.
exports
=
`
pragma solidity >=0.4.22 <0.6.0;
library Assert {
event AssertionEvent(
...
...
@@ -27,13 +29,13 @@ library Assert {
}
// TODO: only for certain versions of solc
//function equal(fixed a, fixed b, string me
mory me
ssage) public returns (bool result) {
//function equal(fixed a, fixed b, string message) public returns (bool result) {
// result = (a == b);
// emit AssertionEvent(result, message);
//}
// TODO: only for certain versions of solc
//function equal(ufixed a, ufixed b, string me
mory me
ssage) public returns (bool result) {
//function equal(ufixed a, ufixed b, string message) public returns (bool result) {
// result = (a == b);
// emit AssertionEvent(result, message);
//}
...
...
@@ -49,7 +51,7 @@ library Assert {
}
function equal(string memory a, string memory b, string memory message) public returns (bool result) {
result = (keccak256(abi.encode
(a)) == keccak256(abi.encode
(b)));
result = (keccak256(abi.encode
Packed(a)) == keccak256(abi.encodePacked
(b)));
emit AssertionEvent(result, message);
}
...
...
@@ -69,13 +71,13 @@ library Assert {
}
// TODO: only for certain versions of solc
//function notEqual(fixed a, fixed b, string me
mory me
ssage) public returns (bool result) {
//function notEqual(fixed a, fixed b, string message) public returns (bool result) {
// result = (a != b);
// emit AssertionEvent(result, message);
//}
// TODO: only for certain versions of solc
//function notEqual(ufixed a, ufixed b, string me
mory me
ssage) public returns (bool result) {
//function notEqual(ufixed a, ufixed b, string message) public returns (bool result) {
// result = (a != b);
// emit AssertionEvent(result, message);
//}
...
...
@@ -91,7 +93,7 @@ library Assert {
}
function notEqual(string memory a, string memory b, string memory message) public returns (bool result) {
result = (keccak256(abi.encode
(a)) != keccak256(abi.encode
(b)));
result = (keccak256(abi.encode
Packed(a)) != keccak256(abi.encodePacked
(b)));
emit AssertionEvent(result, message);
}
...
...
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