Skip to content

Commit 606f33a

Browse files
committed
Update inference tests
1 parent 0110df4 commit 606f33a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Project.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ FillArraysStatisticsExt = "Statistics"
2020

2121
[compat]
2222
Aqua = "0.8"
23+
Base64 = "1"
2324
Documenter = "1"
2425
Infinities = "0.1"
2526
LinearAlgebra = "1.6"
@@ -35,6 +36,7 @@ julia = "1.6"
3536

3637
[extras]
3738
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
39+
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
3840
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
3941
Infinities = "e1ba4f0e-776d-440f-acd9-e1d2e9742647"
4042
PDMats = "90014a1f-27ba-587c-ab20-58faa44d9150"
@@ -47,4 +49,5 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
4749
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4850

4951
[targets]
50-
test = ["Aqua", "Test", "Infinities", "PDMats", "ReverseDiff", "SparseArrays", "StaticArrays", "Statistics", "Quaternions", "Documenter", "Random"]
52+
test = ["Aqua", "Base64", "Test", "Infinities", "PDMats", "ReverseDiff", "SparseArrays", "StaticArrays", "Statistics", "Quaternions", "Documenter", "Random"]
53+

test/runtests.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,13 +1513,14 @@ end
15131513
@test transpose(F) == transpose(G)
15141514
end
15151515

1516-
# test for inference only if aggressive constant propagation is available
15171516
H = if VERSION >= v"1.8"
15181517
@inferred(permutedims(Fill(2, (SOneTo(2), SOneTo(3)))))
15191518
else
15201519
permutedims(Fill(2, (SOneTo(2), SOneTo(3))))
15211520
end
15221521
@test H === Fill(2, (SOneTo(3), SOneTo(2)))
1522+
1523+
# test for inference only if aggressive constant propagation is available
15231524
F = Fill(2, (SOneTo(2), SOneTo(3), SOneTo(1)))
15241525
H = if VERSION >= v"1.8"
15251526
@inferred((F -> permutedims(F, (3,1,2)))(F))

0 commit comments

Comments
 (0)