Skip to content

Commit f5511de

Browse files
committed
add normal test
1 parent e03719c commit f5511de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

abi/mooncx_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ func TestMooncxSwapParams(t *testing.T) {
4141
json: `{"MinOut":"3","Deadline":0,"Excess":"","Referral":null,"NextFulfill":{"Recipient":"0:2cf3b5b8c891e517c9addbda1c0386a09ccacbb0e3faf630b51cfc8152325acb","Payload":"b5ee9c7201010101000800000b0000177beb90"},"NextReject":null}`,
4242
want: `{"MinOut":"3","Deadline":0,"Excess":"","Referral":"","NextFulfill":{"Recipient":"0:2cf3b5b8c891e517c9addbda1c0386a09ccacbb0e3faf630b51cfc8152325acb","Payload":"b5ee9c7201010101000800000b0000177beb90"},"NextReject":null}`,
4343
},
44+
{
45+
name: "normal",
46+
json: `{"MinOut":"3","Deadline":0,"Excess":"0:05ea635b2a168cadfca174d72b12744a5b57d70378e6912e8a33b6b39bd3ee9d","Referral":"0:05ea635b2a168cadfca174d72b12744a5b57d70378e6912e8a33b6b39bd3ee9d","NextFulfill":{"Recipient":"0:2cf3b5b8c891e517c9addbda1c0386a09ccacbb0e3faf630b51cfc8152325acb","Payload":"b5ee9c7201010101000800000b0000177beb90"},"NextReject":null}`,
47+
want: `{"MinOut":"3","Deadline":0,"Excess":"0:05ea635b2a168cadfca174d72b12744a5b57d70378e6912e8a33b6b39bd3ee9d","Referral":"0:05ea635b2a168cadfca174d72b12744a5b57d70378e6912e8a33b6b39bd3ee9d","NextFulfill":{"Recipient":"0:2cf3b5b8c891e517c9addbda1c0386a09ccacbb0e3faf630b51cfc8152325acb","Payload":"b5ee9c7201010101000800000b0000177beb90"},"NextReject":null}`,
48+
},
4449
}
4550
for _, tt := range tests {
4651
t.Run(tt.name, func(t *testing.T) {

0 commit comments

Comments
 (0)