Skip to content

Commit bc5dfb2

Browse files
authored
Import REPL stdlib in test suite (#689)
1 parent 31a3122 commit bc5dfb2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@ Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
2828
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
2929
InverseFunctions = "3587e190-3f89-42d0-90ee-14403ec27112"
3030
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
31+
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
3132
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
3233
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
3334

3435
[targets]
35-
test = ["Aqua", "ConstructionBase", "InverseFunctions", "LinearAlgebra", "Test", "Random"]
36+
test = ["Aqua", "ConstructionBase", "InverseFunctions", "LinearAlgebra", "Test", "Random", "REPL"]

test/runtests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2137,6 +2137,8 @@ module DocUnits
21372137
@unit dFoo "dFoo" DFoo 1*dRefFoo*u"m" true true
21382138
end
21392139

2140+
using REPL # This is necessary to make `@doc` work correctly
2141+
21402142
@testset "Docs" begin
21412143
@test string(@doc(Unitful.L)) == string(@doc(Unitful.l))
21422144
@test string(@doc(Unitful.cL)) == string(@doc(Unitful.cl))

0 commit comments

Comments
 (0)