2020-12-11 10:05:19 -08:00
|
|
|
package rules
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/require"
|
2021-11-25 14:07:56 -08:00
|
|
|
|
|
|
|
|
// included to allow using -update-fixtures for every package without errors
|
|
|
|
|
_ "github.com/BattlesnakeOfficial/rules/test"
|
2020-12-11 10:05:19 -08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func TestRulesetError(t *testing.T) {
|
|
|
|
|
err := (error)(RulesetError("test error string"))
|
|
|
|
|
require.Equal(t, "test error string", err.Error())
|
|
|
|
|
}
|