瀏覽代碼

Refactoring tests

luis 7 年之前
父節點
當前提交
b5424cd028
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      go/src/flow/flow_test.go

+ 5 - 5
go/src/flow/flow_test.go

@@ -174,11 +174,11 @@ func BenchmarkComplex(b *testing.B) {
 }
 
 func init() {
-	flow.Register("vecmul", VecMul)
-	flow.Register("vecadd", VecAdd)
-	flow.Register("vecdiv", VecDiv)
-	flow.Register("inc", Inc)
-	flow.Register("add", Add)
+	registry.Register("vecmul", VecMul)
+	registry.Register("vecadd", VecAdd)
+	registry.Register("vecdiv", VecDiv)
+	registry.Register("inc", Inc)
+	registry.Register("add", Add)
 }
 
 func prepareComplex() (*flow.Flow, flow.Operation) {