From 9bcc7a49bd44f34cdbfc99518ef6c513a268ec44 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Fri, 17 Aug 2018 00:18:30 +0200 Subject: [PATCH] fix some exported undefined variables and test this does not happen (#28693) (cherry picked from commit cc0de4389b6ced991efb83297a4fd47fdba51dc8) --- stdlib/LinearAlgebra/src/LinearAlgebra.jl | 1 - stdlib/Random/src/Random.jl | 4 +--- test/misc.jl | 8 ++++++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/stdlib/LinearAlgebra/src/LinearAlgebra.jl b/stdlib/LinearAlgebra/src/LinearAlgebra.jl index 0da7dadb67434c..f84e56883b4365 100644 --- a/stdlib/LinearAlgebra/src/LinearAlgebra.jl +++ b/stdlib/LinearAlgebra/src/LinearAlgebra.jl @@ -133,7 +133,6 @@ export tr, transpose, transpose!, - transpose_type, tril, triu, tril!, diff --git a/stdlib/Random/src/Random.jl b/stdlib/Random/src/Random.jl index 42aebc1344d427..1ac74ad5e64fdd 100644 --- a/stdlib/Random/src/Random.jl +++ b/stdlib/Random/src/Random.jl @@ -23,9 +23,7 @@ export rand!, randn!, shuffle, shuffle!, randperm, randperm!, randcycle, randcycle!, - AbstractRNG, MersenneTwister, RandomDevice, - randjump - + AbstractRNG, MersenneTwister, RandomDevice ## general definitions diff --git a/test/misc.jl b/test/misc.jl index beec7c1033a312..c280fc79d145e7 100644 --- a/test/misc.jl +++ b/test/misc.jl @@ -678,3 +678,11 @@ end # Just checking that this doesn't stack overflow on construction @test Test27970Empty() == Test27970Empty() end + +@testset "exports of modules" begin + for (_, mod) in Base.loaded_modules + for v in names(mod) + @test isdefined(mod, v) + end + end +end