diff --git a/Project.toml b/Project.toml index adff298..f3b71b0 100644 --- a/Project.toml +++ b/Project.toml @@ -7,8 +7,9 @@ version = "1.10.0" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" [extras] +Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["OrderedCollections", "Test"] +test = ["Documenter", "OrderedCollections", "Test"] diff --git a/test/runtests.jl b/test/runtests.jl index 0591ec4..8fe0872 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -13,10 +13,18 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . +using Documenter: DocMeta.setdocmeta!, doctest using OrderedCollections: LittleDict, OrderedDict using Random: Random using Test, UUID4 +setdocmeta!(UUID4, :DocTestSetup, quote +#! format: noindent +using OrderedCollections: OrderedDict +using UUID4 +end) +doctest(UUID4, fix = true, manual = false) + u4 = uuid4() @test 4 == uuid_version(u4) @test 4 == uuid_version(u4 |> string)