assertNotEq

签名

bool

function assertNotEq(bool left, bool right) internal;
function assertNotEq(bool left, bool right, string memory err) internal;

uint256

function assertNotEq(uint256 left, uint256 right) internal;
function assertNotEq(uint256 left, uint256 right, string memory err) internal;

int256

function assertNotEq(int256 left, int256 right) internal;
function assertNotEq(int256 left, int256 right, string memory err) internal;

address

function assertNotEq(address left, address right) internal;
function assertNotEq(address left, address right, string memory err) internal;

bytes32

function assertNotEq(bytes32 left, bytes32 right) internal;
function assertNotEq(bytes32 left, bytes32 right, string memory err) internal;

string

function assertNotEq(string memory left, string memory right) internal;
function assertNotEq(string memory left, string memory right, string memory err) internal;

bytes

function assertNotEq(bytes memory left, bytes memory right) internal;
function assertNotEq(bytes memory left, bytes memory right, string memory err) internal;

bool[]

function assertNotEq(bool[] memory left, bool[] memory right) internal;
function assertNotEq(bool[] memory left, bool[] memory right, string memory err) internal;

uint256[]

function assertNotEq(uint256[] memory left, uint256[] memory right) internal;
function assertNotEq(uint256[] memory left, uint256[] memory right, string memory err) internal;

int256[]

function assertNotEq(int256[] memory left, int256[] memory right) internal;
function assertNotEq(int256[] memory left, int256[] memory right, string memory err) internal;

address[]

function assertNotEq(address[] memory left, address[] memory right) internal;
function assertNotEq(address[] memory left, address[] memory right, string memory err) internal;

bytes32[]

function assertNotEq(bytes32[] memory left, bytes32[] memory right) internal;
function assertNotEq(bytes32[] memory left, bytes32[] memory right, string memory err) internal;

string[]

function assertNotEq(string[] memory left, string[] memory right) internal;
function assertNotEq(string[] memory left, string[] memory right, string memory err) internal;

bytes[]

function assertNotEq(bytes[] memory left, bytes[] memory right) internal;
function assertNotEq(bytes[] memory left, bytes[] memory right, string memory err) internal;

旧版

function assertNotEq32(bytes32 left, bytes32 right) internal;
function assertNotEq32(bytes32 left, bytes32 right, string memory err) internal;

描述

断言 left 不等于 right

可选地在回退字符串中包含错误消息。

参见