Skip to content

Commit c729260

Browse files
committed
testset names
1 parent 5a7bfc8 commit c729260

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

test/destructure.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ m5 = (a = (m3, true), b = (m1, false), c = (m4, true))
77
m6 = (a = m1, b = [4.0 + im], c = m1)
88
m7 = TwoThirds((sin, collect(1:3.0)), (cos, collect(4:6.0)), (tan, collect(7:9.0)))
99

10-
@testset "flatten & restore" begin
10+
@testset "flatten & rebuild" begin
1111
@test destructure(m1)[1] isa Vector{Float64}
1212
@test destructure(m1)[1] == 1:3
1313
@test destructure(m2)[1] == 1:6

test/rules.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
end
4545
end
4646

47-
@testset verbose=true "simple sum" begin
47+
@testset "simple sum" begin
4848
empty!(LOG)
4949
@testset "$(name(o))" for o in RULES
5050
m = shuffle!(reshape(1:64, 8, 8) .+ 0.0)
@@ -79,7 +79,7 @@ end
7979
end
8080
end
8181

82-
@testset verbose=true "StaticArrays" begin
82+
@testset "StaticArrays" begin
8383
empty!(LOG)
8484
@testset "$(name(o))" for o in RULES
8585
W1 = @SMatrix randn(10, 10)
@@ -161,7 +161,7 @@ end
161161
end
162162
end
163163

164-
@testset verbose=true "mutation check" begin
164+
@testset "mutation check" begin
165165
# If @lazy captures a matrix which is later mutated, the results won't agree here:
166166
@testset "$(name(o))" for o in RULES
167167
model = Float64.(rand(Int8, 8))
@@ -178,7 +178,7 @@ end
178178
end
179179
end
180180

181-
@testset "with complex numebers: Flux#1776" begin
181+
@testset "with complex numbers: Flux#1776" begin
182182
empty!(LOG)
183183
@testset "$(name(opt))" for opt in [
184184
# The Flux PR had 1e-2 for all. But ADADelta(ρ) needs ρ≈0.9 not small. And it helps to make ε not too small too:

test/runtests.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Optimisers.trainable(x::TwoThirds) = (a = x.a,)
151151
end
152152

153153
end
154-
@testset verbose=true "Optimisation Rules" begin
154+
@testset verbose=true "Destructure" begin
155155
include("destructure.jl")
156156
end
157157
@info "finished feature testing"

0 commit comments

Comments
 (0)