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.
24 lines
966 B
24 lines
966 B
/* eslint-env node, mocha */
|
|
|
|
/*const solc = require('solc');
|
|
const getInstrumentedVersion = require('./../lib/instrumentSolidity.js');
|
|
const util = require('./util/util.js');
|
|
const path = require('path');
|
|
|
|
describe('generic expressions', () => {
|
|
const filePath = path.resolve('./test.sol');
|
|
|
|
it('should compile after instrumenting a single binary expression', () => {
|
|
const contract = util.getCode('expressions/single-binary-expression.sol');
|
|
const info = getInstrumentedVersion(contract, filePath);
|
|
const output = JSON.parse(solc.compile(util.codeToCompilerInput(info.contract)));
|
|
util.report(output.errors);
|
|
});
|
|
|
|
it('should compile after instrumenting a new expression', () => {
|
|
const contract = util.getCode('expressions/new-expression.sol');
|
|
const info = getInstrumentedVersion(contract, filePath);
|
|
const output = JSON.parse(solc.compile(util.codeToCompilerInput(info.contract)));
|
|
util.report(output.errors);
|
|
});
|
|
});*/
|
|
|