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/libs/remix-tests/tests/examples_3/simple_string_test.sol

19 lines
492 B

pragma solidity >= 0.5.0 < 0.7.0;
import "./simple_string.sol";
contract StringTest {
SimpleString foo;
function beforeAll() public {
foo = new SimpleString();
}
function initialValueShouldBeHelloWorld() public returns (bool) {
return Assert.equal(foo.get(), "Hello world!", "initial value is not correct");
}
function valueShouldNotBeHelloWordl() public returns (bool) {
return Assert.notEqual(foo.get(), "Hello wordl!", "value should not be hello wordl");
}
}