Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
cabrador committed Oct 7, 2024
1 parent 9c06b0e commit f55ffb9
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ethtest/block_enviroment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,14 @@ func TestStBlockEnvironment_GetBlobBaseFee(t *testing.T) {
})
}
}

func TestStBlockEnvironment_CorrectBlockNumberIsReturned(t *testing.T) {
blkNumber := uint64(1)
env := &stBlockEnvironment{
Number: newBigInt(int64(blkNumber)),
}

if got, want := env.GetNumber(), blkNumber; got != want {
t.Errorf("unexpected block number, got: %v, want: %v", got, want)
}
}

0 comments on commit f55ffb9

Please sign in to comment.