(t *testing.T)
| 25 | } |
| 26 | |
| 27 | func TestOpcodeGas(t *testing.T) { |
| 28 | tests := []struct { |
| 29 | op Opcode |
| 30 | expected uint64 |
| 31 | }{ |
| 32 | {STOP, 0}, |
| 33 | {ADD, 3}, |
| 34 | {SUB, 3}, |
| 35 | // ... other opcodes |
| 36 | } |
| 37 | |
| 38 | for _, tt := range tests { |
| 39 | t.Run(tt.op.String()+" Gas", func(t *testing.T) { |
| 40 | assert.Equal(t, tt.expected, tt.op.Gas()) |
| 41 | }) |
| 42 | } |
| 43 | } |