cli: fix +
marshalling in TestNEP11_OwnerOf_BalanceOf_Transfer
Problem: ``` executor_test.go:151: Error Trace: executor_test.go:151 executor_test.go:147 nep11_test.go:232 Error: Expect "{"name":"HASHY 3HNCEX8D9J0p\u002BLxmr3uPhOhSW90="}" to match "{"name":"HASHY 3HNCEX8D9J0p+Lxmr3uPhOhSW90="}" Test: TestNEP11_OwnerOf_BalanceOf_Transfer ``` Solution: Same as preesnted in #2006.
This commit is contained in:
parent
472a44a464
commit
91f4513357
1 changed files with 3 additions and 1 deletions
|
@ -8,6 +8,7 @@ import (
|
||||||
"math/big"
|
"math/big"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/nspcc-dev/neo-go/pkg/core/native/nativenames"
|
"github.com/nspcc-dev/neo-go/pkg/core/native/nativenames"
|
||||||
|
@ -229,7 +230,8 @@ func TestNEP11_OwnerOf_BalanceOf_Transfer(t *testing.T) {
|
||||||
|
|
||||||
// properties: ok
|
// properties: ok
|
||||||
e.Run(t, cmdProperties...)
|
e.Run(t, cmdProperties...)
|
||||||
e.checkNextLine(t, fmt.Sprintf(`{"name":"HASHY %s"}`, string(tokenID)))
|
marshalledID := strings.Replace(string(tokenID), "+", "\\u002B", -1)
|
||||||
|
require.Equal(t, fmt.Sprintf(`{"name":"HASHY %s"}`, marshalledID), e.getNextLine(t))
|
||||||
|
|
||||||
// tokensOf: good, several tokens
|
// tokensOf: good, several tokens
|
||||||
tokenID1 := mint(t)
|
tokenID1 := mint(t)
|
||||||
|
|
Loading…
Reference in a new issue