Files
atomic-swap/ethereum/utils_test.go

24 lines
433 B
Go

// Copyright 2023 The AthanorLabs/atomic-swap Authors
// SPDX-License-Identifier: LGPL-3.0-only
package contracts
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestStage_StageToString(t *testing.T) {
expectedValues := []string{
"Invalid",
"Pending",
"Ready",
"Completed",
"UnknownStageValue(4)",
}
for s := byte(0); s < byte(5); s++ {
require.Equal(t, expectedValues[s], StageToString(s))
}
}