github.com/ethereumproject/go-ethereum@v5.5.2+incompatible/core/vm/gas_test.go (about) 1 package vm 2 3 import ( 4 "math/big" 5 "testing" 6 ) 7 8 func TestGasIsEmpty(t *testing.T) { 9 var DefaultGasRepriceGasTable = &GasTable{ 10 ExtcodeSize: big.NewInt(700), 11 ExtcodeCopy: big.NewInt(700), 12 Balance: big.NewInt(400), 13 SLoad: big.NewInt(200), 14 Calls: big.NewInt(700), 15 Suicide: big.NewInt(5000), 16 ExpByte: big.NewInt(10), 17 CreateBySuicide: big.NewInt(25000), 18 } 19 if DefaultGasRepriceGasTable.IsEmpty() { 20 t.Error("Unexpected IsEmpty() for nonempty gas table.") 21 } 22 }