(t *testing.T, expect types.VmValue)
| 41 | type Value interface{} |
| 42 | |
| 43 | func value2json(t *testing.T, expect types.VmValue) string { |
| 44 | //e, err := expect.ConvertNeoVmValueHexString() |
| 45 | e, err := expect.Stringify() |
| 46 | assert.Nil(t, err) |
| 47 | exp, err := json.Marshal(e) |
| 48 | assert.Nil(t, err) |
| 49 | |
| 50 | return string(exp) |
| 51 | } |
| 52 | |
| 53 | func assertEqual(t *testing.T, expect, actual types.VmValue) { |
| 54 | assert.Equal(t, value2json(t, expect), value2json(t, actual)) |
no test coverage detected