Skip to content

Commit c686fc5

Browse files
committed
testset names
1 parent e325f66 commit c686fc5

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)
@@ -157,7 +157,7 @@ end
157157
end
158158
end
159159

160-
@testset verbose=true "mutation check" begin
160+
@testset "mutation check" begin
161161
# If @lazy captures a matrix which is later mutated, the results won't agree here:
162162
@testset "$(name(o))" for o in RULES
163163
model = Float64.(rand(Int8, 8))
@@ -174,7 +174,7 @@ end
174174
end
175175
end
176176

177-
@testset "with complex numebers: Flux#1776" begin
177+
@testset "with complex numbers: Flux#1776" begin
178178
empty!(LOG)
179179
@testset "$(name(opt))" for opt in [
180180
# 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
@@ -165,7 +165,7 @@ Optimisers.trainable(x::TwoThirds) = (a = x.a,)
165165
end
166166

167167
end
168-
@testset verbose=true "Optimisation Rules" begin
168+
@testset verbose=true "Destructure" begin
169169
include("destructure.jl")
170170
end
171171
@info "finished feature testing"

0 commit comments

Comments
 (0)