Create some subroutines and test
This commit is contained in:
13
src/game/rule/operation/operation_test.go
Normal file
13
src/game/rule/operation/operation_test.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package operation
|
||||
|
||||
import (
|
||||
"local/sandbox/cards/src/entity"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestOperationInterface(t *testing.T) {
|
||||
foo := func(*entity.Game, interface{}) int { return 0 }
|
||||
var _ Int = foo
|
||||
bar := func(*entity.Game, interface{}) bool { return false }
|
||||
var _ Bool = bar
|
||||
}
|
||||
Reference in New Issue
Block a user