github.com/aswedchain/aswed@v1.0.1/consensus/congress/systemcontract/abi_test.go (about) 1 package systemcontract 2 3 import ( 4 "github.com/aswedchain/aswed/accounts/abi" 5 "github.com/stretchr/testify/require" 6 "strings" 7 "testing" 8 ) 9 10 func TestJsonUnmarshalABI(t *testing.T) { 11 for _, abiStr := range []string{ValidatorsInteractiveABI, PunishInteractiveABI, ProposalInteractiveABI, SysGovInteractiveABI, AddrListInteractiveABI} { 12 _, err := abi.JSON(strings.NewReader(ValidatorsInteractiveABI)) 13 require.NoError(t, err, abiStr) 14 } 15 }