remix-project mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
remix-project/remix-tests/tests/examples_3/simple_string_test.sol

23 lines
636 B

pragma solidity ^0.4.7;
import "./simple_string.sol";
contract StringTest {
SimpleString foo;
function beforeAll() {
foo = new SimpleString();
}
6 years ago
function initialValueShouldBeHello() public view returns (bool) {
return Assert.equal(foo.get(), "Hello world!", "initial value is not correct");
}
6 years ago
function valueShouldNotBeHelloWorld() public viewview returns (bool) {
return Assert.notEqual(foo.get(), "Hello wordl!", "initial value is not correct");
}
6 years ago
function valueShouldBeHelloWorld() public view returns (bool) {
return Assert.equal(foo.get(), "Hello wordl!", "initial value is not correct");
}
}