Skip to content

Commit

Permalink
tests: add workaround for regression in 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
aplavin committed Oct 8, 2024
1 parent d737c58 commit f34ce60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
MacroTools = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
PerformanceTestTools = "dc46b164-d16f-48ec-a853-60448fc869fe"
QuickTypes = "ae2dfa86-617c-530c-b392-ef20fdad97bb"
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
StaticNumbers = "c5e4b96a-f99f-5557-8ed2-dc63ef9b5131"
StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a"
Expand Down
4 changes: 4 additions & 0 deletions test/test_core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,10 @@ end
@accessor Base.Float64(s::MyStruct) = s.x[2]
@accessor (t::MyStruct)(s::MyStruct) = s.x + t.x

# https://github.com/JuliaLang/julia/issues/54664: the return type of @doc f changes depending on REPL being loaded.
# let's load REPL until that regression is fixed
import REPL

@testset "@accessor" begin
s = MyStruct((a=123,))
@test strip(string(@doc(my_x))) == "Documentation for my_x"
Expand Down

0 comments on commit f34ce60

Please sign in to comment.