Skip to content

Commit

Permalink
Unit test improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
0x19 committed Aug 28, 2023
1 parent 00f10f2 commit b0c4552
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions compiler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -564,10 +564,13 @@ func TestCompilerWithJSON(t *testing.T) {
assert.NotNil(t, compilerResults)

for _, result := range compilerResults {
assert.NotNil(t, result.IsEntry())
assert.NotEmpty(t, result.GetRequestedVersion())
assert.NotEmpty(t, result.GetBytecode())
assert.NotEmpty(t, result.GetABI())
assert.NotEmpty(t, result.GetContractName())
assert.NotEmpty(t, result.GetOpcodes())
assert.NotEmpty(t, result.GetMetadata())
assert.GreaterOrEqual(t, len(result.GetWarnings()), 0)
assert.GreaterOrEqual(t, len(result.GetErrors()), 0)
}
Expand Down
2 changes: 1 addition & 1 deletion releases/releases.json
Git LFS file not shown

0 comments on commit b0c4552

Please sign in to comment.