Skip to content

Do not run import callback test on <0.2.1 #399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 30, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions test/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ tape('Compilation', function (t) {
});

t.test('multiple files can be compiled (using lowlevel API)', function (st) {
// Introduced in 0.1.6
// <0.1.6 doesn't have this
if (typeof solc.lowlevel.compileMulti !== 'function') {
st.skip('Low-level compileMulti interface not implemented by this compiler version.');
st.end();
Expand All @@ -118,7 +118,7 @@ tape('Compilation', function (t) {
});

t.test('lazy-loading callback works (using lowlevel API)', function (st) {
// Introduced in 0.2.1
// <0.2.1 doesn't have this
if (typeof solc.lowlevel.compileCallback !== 'function') {
st.skip('Low-level compileCallback interface not implemented by this compiler version.');
st.end();
Expand Down Expand Up @@ -397,8 +397,8 @@ tape('Compilation', function (t) {
});

t.test('compiling standard JSON (with imports)', function (st) {
// <0.1.6 doesn't have this
if (!solc.features.multipleInputs) {
// <0.2.1 doesn't have this
if (!solc.features.importCallback) {
st.skip('Not supported by solc');
st.end();
return;
Expand Down