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_0/assert_notEqual_test.sol

37 lines
1.2 KiB

import "remix_tests.sol"; // this import is automatically injected by Remix.
contract AssertNotEqualTest {
function notEqualUintPassTest() public {
Assert.notEqual(uint(1), uint(2), "notEqualUintPassTest passes");
}
function notEqualUintFailTest() public {
Assert.notEqual(uint(1), uint(1), "notEqualUintFailTest fails");
}
function notEqualIntPassTest() public {
Assert.notEqual(1, -1, "notEqualIntPassTest passes");
}
function notEqualIntFailTest() public {
Assert.notEqual(-2, -2, "notEqualIntFailTest fails");
}
function notEqualBoolPassTest() public {
Assert.notEqual(true, false, "notEqualBoolPassTest passes");
}
function notEqualBoolFailTest() public {
Assert.notEqual(true, true, "notEqualBoolFailTest fails");
}
function notEqualAddressPassTest() public {
Assert.notEqual(0x7994f14563F39875a2F934Ce42cAbF48a93FdDA9, 0x1c6637567229159d1eFD45f95A6675e77727E013, "notEqualAddressPassTest passes");
}
function notEqualAddressFailTest() public {
Assert.notEqual(0x7994f14563F39875a2F934Ce42cAbF48a93FdDA9, 0x7994f14563F39875a2F934Ce42cAbF48a93FdDA9, "notEqualAddressFailTest fails");
}
}