5757 @Test . test fp (1 ) == 1
5858 end
5959
60- t = @elapsed for i = 1 : 10
60+ global t = @elapsed for i = 1 : 10
6161 @Test . test fp (i) == i
6262 end
6363 @Test . test t > 0.5
6464 @Test . test t < 2.
6565
66- t = @elapsed for i = 1 : 10
66+ global t = @elapsed for i = 1 : 10
6767 @Test . test fp (i) == i
6868 end
6969 @Test . test t < 4. # this is slow under 1.0
7070
71- d = Dict (zip ([1 , 2 ], [3 , 4 ]))
71+ global d = Dict (zip ([1 , 2 ], [3 , 4 ]))
7272 for i = 1 : 2
7373 @Test . test fp (d) == d
7474 end
7575
76- t = @elapsed for i = 1 : 10
76+ global t = @elapsed for i = 1 : 10
7777 d = Dict (zip ([1 , 2 ], [i, i + 1 ]))
7878 @Test . test fp (d) == d
7979 end
8080 @Test . test t > 0.5
8181 @Test . test t < 2.
8282
83- t = @elapsed for i = 1 : 10
83+ global t = @elapsed for i = 1 : 10
8484 d = Dict (zip ([1 , 2 ], [i, i + 1 ]))
8585 @Test . test fp (d) == d
8686 end
8787 @Test . test t < 4. # this is slow under 1.0
8888
89- v = zeros (10 )
89+ global v = zeros (10 )
9090 for i = 1 : 2
9191 @Test . test fp (v) == v
9292 end
9393
94- t = @elapsed for i = 1 : 10
95- v = i * ones (10 )
94+ global t = @elapsed for i = 1 : 10
95+ global v = i * ones (10 )
9696 @Test . test fp (v) == v
9797 end
9898 @Test . test t > 0.5
9999 @Test . test t < 2.
100100
101- t = @elapsed for i = 1 : 10
102- v = i * ones (10 )
101+ global t = @elapsed for i = 1 : 10
102+ global v = i * ones (10 )
103103 @Test . test fp (v) == v
104104 end
105105 @Test . test t < 4. # this is slow under 1.0
@@ -110,15 +110,15 @@ end
110110 end
111111
112112 v3g = ReusableFunctions. maker3function (freusevector, restartdir)
113- d = [1 , 2 ]
114- r = [1 , 2 ]
113+ global d = [1 , 2 ]
114+ global r = [1 , 2 ]
115115 for i = 1 : 2
116116 @Test . test v3g (d) == r
117117 end
118118
119119 r3g = ReusableFunctions. maker3function (greuse, restartdir, [" a" , " b" ], [" asdf" , " hjkl" ])
120- d = Dict (" a" => 1 , " b" => 3 )
121- r = Dict (" asdf" => - 2 , " hjkl" => 3 )
120+ global d = Dict (" a" => 1 , " b" => 3 )
121+ global r = Dict (" asdf" => - 2 , " hjkl" => 3 )
122122 for i = 1 : 2
123123 @Test . test r3g (d) == r
124124 end
@@ -133,17 +133,17 @@ end
133133 @Test . test r3g (d) == r
134134 end
135135
136- t = @elapsed for i = 1 : 10
137- d = Dict (zip ([" a" , " b" ], [i, i + 2 ]))
138- r = Dict (" asdf" => - 2 , " hjkl" => i * (i + 2 ))
136+ global t = @elapsed for i = 1 : 10
137+ global d = Dict (zip ([" a" , " b" ], [i, i + 2 ]))
138+ global r = Dict (" asdf" => - 2 , " hjkl" => i * (i + 2 ))
139139 @Test . test r3g (d) == r
140140 end
141141 @Test . test t > 0.5
142142 @Test . test t < 2.
143143
144144 t = @elapsed for i = 1 : 10
145- d = Dict (zip ([" a" , " b" ], [i, i + 2 ]))
146- r = Dict (" asdf" => - 2 , " hjkl" => i * (i + 2 ))
145+ global d = Dict (zip ([" a" , " b" ], [i, i + 2 ]))
146+ global r = Dict (" asdf" => - 2 , " hjkl" => i * (i + 2 ))
147147 @Test . test r3g (d) == r
148148 end
149149 @Test . test t < 2. # this is slow under 1.0
0 commit comments