Commit e2f1d740 authored by Iuri Matias's avatar Iuri Matias

clarify comments

parent 091576fd
......@@ -15,13 +15,11 @@ contract MyTest2 {
}
function initialValueShouldBe100() public constant returns (bool) {
//return Assert.equal(foo.get(), 100, "initial value is not correct");
return foo.get() == 100;
return Assert.equal(foo.get(), 100, "initial value is not correct");
}
function initialValueShouldBe200() public constant returns (bool) {
//return Assert.equal(foo.get(), 200, "initial value is not correct");
return foo.get() == 200;
return Assert.equal(foo.get(), 200, "initial value is not correct");
}
}
......
......@@ -27,11 +27,13 @@ library Assert {
AssertionEvent(result, message);
}
// TODO: only for certain versions of solc
//function equal(fixed a, fixed b, string message) public returns (bool result) {
// result = (a == b);
// AssertionEvent(result, message);
//}
// TODO: only for certain versions of solc
//function equal(ufixed a, ufixed b, string message) public returns (bool result) {
// result = (a == b);
// AssertionEvent(result, message);
......@@ -47,7 +49,7 @@ library Assert {
AssertionEvent(result, message);
}
// probably need to convert to bytes first
// TODO: needs to be convert to bytes first to be comparable
//function equal(string a, string b, string message) public returns (bool result) {
// result = (a == b);
// AssertionEvent(result, message);
......@@ -68,11 +70,13 @@ library Assert {
AssertionEvent(result, message);
}
// TODO: only for certain versions of solc
//function notEqual(fixed a, fixed b, string message) public returns (bool result) {
// result = (a != b);
// AssertionEvent(result, message);
//}
// TODO: only for certain versions of solc
//function notEqual(ufixed a, ufixed b, string message) public returns (bool result) {
// result = (a != b);
// AssertionEvent(result, message);
......@@ -88,7 +92,7 @@ library Assert {
AssertionEvent(result, message);
}
// probably need to convert to bytes first
// TODO: needs to be convert to bytes first to be comparable
//function notEqual(string a, string b, string message) public returns (bool result) {
// result = (a != b);
// AssertionEvent(result, message);
......
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