Commit 9dd9e040 authored by Adrian Sutton's avatar Adrian Sutton Committed by GitHub

op-challenger: Add super-cannon to GameType strings (#13832)

parent 8910388c
......@@ -48,6 +48,8 @@ func (t GameType) String() string {
return "asterisc"
case AsteriscKonaGameType:
return "asterisc-kona"
case SuperCannonGameType:
return "super-cannon"
case FastGameType:
return "fast"
case AlphabetGameType:
......
......@@ -69,3 +69,12 @@ func TestKnownGameTypeForEveryTraceType(t *testing.T) {
})
}
}
func TestKnownStringForUtilisedGameType(t *testing.T) {
for _, traceType := range TraceTypes {
traceType := traceType
t.Run(traceType.String(), func(t *testing.T) {
require.NotContains(t, traceType.GameType().String(), "invalid")
})
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment