Skip to content

Commit 98c49f1

Browse files
committed
test + bump
1 parent 9982cbe commit 98c49f1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "SliceMap"
22
uuid = "82cb661a-3f19-5665-9e27-df437c7e54c8"
33
authors = ["Michael Abbott"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"

test/runtests.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,16 @@ end
140140
@test res slicemap(fun, ten, dims=3)
141141

142142
grad = ForwardDiff.gradient(x -> sum(sin, slicemap(fun, x, dims=3)), ten)
143-
@test grad Zygote.gradient(x -> sum(sin, slicemap(fun, x, dims=3)), ten)[1]
143+
@test_broken grad Zygote.gradient(x -> sum(sin, slicemap(fun, x, dims=3)), ten)[1]
144144

145145
jthree(f,m) = Align(map(f,
146146
Slices(m, False(), False(), True(), False())
147147
), False(), False(), True(), False())
148148
@test res jthree(fun, ten)
149149
@test grad Zygote.gradient(m -> sum(sin, jthree(fun, m)), ten)[1]
150150

151+
j3(f,m) = Align(map(f, Slices(m, 3)), 3)
152+
@test res j3(fun, ten)
153+
@test grad Zygote.gradient(m -> sum(sin, j3(fun, m)), ten)[1]
154+
151155
end

0 commit comments

Comments
 (0)