github.com/coltonfike/e2c@v21.1.0+incompatible/eth/config_test.go (about)

     1  package eth
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestQuorumDefautConfig(t *testing.T) {
    10  	type data struct {
    11  		actual   uint64
    12  		expected uint64
    13  	}
    14  	var testData = map[string]data{
    15  		"eth.DefaultConfig.Miner.GasFloor": {DefaultConfig.Miner.GasFloor, 700000000},
    16  		"eth.DefaultConfig.Miner.GasCeil":  {DefaultConfig.Miner.GasCeil, 800000000},
    17  	}
    18  	for k, v := range testData {
    19  		assert.Equal(t, v.expected, v.actual, k+" value mismatch")
    20  	}
    21  }