Browse Source

Refactoring tests

luis 7 năm trước cách đây
mục cha
commit
b5424cd028
1 tập tin đã thay đổi với 5 bổ sung5 xóa
  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) {