mirror of openzeppelin-contracts
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.
|
|
|
const { shouldSupportInterfaces } = require('./SupportsInterface.behavior');
|
|
|
|
const shouldFail = require('../helpers/shouldFail');
|
|
|
|
|
|
|
|
const ERC165Mock = artifacts.require('ERC165Mock');
|
|
|
|
|
|
|
|
require('chai')
|
|
|
|
.should();
|
|
|
|
|
|
|
|
contract('ERC165', function () {
|
|
|
|
beforeEach(async function () {
|
|
|
|
this.mock = await ERC165Mock.new();
|
|
|
|
});
|
|
|
|
|
|
|
|
it('does not allow 0xffffffff', async function () {
|
|
|
|
await shouldFail.reverting(
|
|
|
|
this.mock.registerInterface(0xffffffff)
|
|
|
|
);
|
|
|
|
});
|
|
|
|
|
|
|
|
shouldSupportInterfaces([
|
|
|
|
'ERC165',
|
|
|
|
]);
|
|
|
|
});
|