|
|
@ -31,7 +31,7 @@ func TestCompiler(t *testing.T) { |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
|
t.Skip("solc not found: skip") |
|
|
|
t.Skip("solc not found: skip") |
|
|
|
} else if sol.Version() != solcVersion { |
|
|
|
} else if sol.Version() != solcVersion { |
|
|
|
t.Logf("WARNING: a newer version of solc found (%v, expect %v)", sol.Version(), solcVersion) |
|
|
|
t.Skip("WARNING: skipping due to a newer version of solc found (%v, expect %v)", sol.Version(), solcVersion) |
|
|
|
} |
|
|
|
} |
|
|
|
contracts, err := sol.Compile(source) |
|
|
|
contracts, err := sol.Compile(source) |
|
|
|
if err != nil { |
|
|
|
if err != nil { |
|
|
@ -54,7 +54,7 @@ func TestCompileError(t *testing.T) { |
|
|
|
if err != nil || sol.version != solcVersion { |
|
|
|
if err != nil || sol.version != solcVersion { |
|
|
|
t.Skip("solc not found: skip") |
|
|
|
t.Skip("solc not found: skip") |
|
|
|
} else if sol.Version() != solcVersion { |
|
|
|
} else if sol.Version() != solcVersion { |
|
|
|
t.Logf("WARNING: a newer version of solc found (%v, expect %v)", sol.Version(), solcVersion) |
|
|
|
t.Skip("WARNING: skipping due to a newer version of solc found (%v, expect %v)", sol.Version(), solcVersion) |
|
|
|
} |
|
|
|
} |
|
|
|
contracts, err := sol.Compile(source[2:]) |
|
|
|
contracts, err := sol.Compile(source[2:]) |
|
|
|
if err == nil { |
|
|
|
if err == nil { |
|
|
|