mirror of
https://github.com/AthanorLabs/atomic-swap.git
synced 2026-01-09 14:18:03 -05:00
24 lines
433 B
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))
|
|
}
|
|
}
|