Code coverage for Solidity smart-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.
|
|
|
/* eslint-env node, mocha */
|
|
|
|
/* global artifacts, contract, assert */
|
|
|
|
|
|
|
|
const PureView = artifacts.require('PureView');
|
|
|
|
|
|
|
|
contract('PureView', accounts => {
|
|
|
|
|
|
|
|
it('calls a pure function', async function(){
|
|
|
|
const instance = await PureView.new();
|
|
|
|
const value = await instance.isPure(4,5);
|
|
|
|
});
|
|
|
|
|
|
|
|
it('calls a view function', async function(){
|
|
|
|
const instance = await PureView.new();
|
|
|
|
const value = await instance.isView();
|
|
|
|
})
|
|
|
|
});
|