From ae470f1001f5fa993d7547e31a9fa5580f69667c Mon Sep 17 00:00:00 2001 From: David Anthoff Date: Fri, 29 Dec 2023 14:59:47 -0800 Subject: [PATCH] Fix doctests for Julia 1.10 --- docs/src/sources.md | 2 +- test/runtests.jl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/src/sources.md b/docs/src/sources.md index a3c11e3..b968189 100644 --- a/docs/src/sources.md +++ b/docs/src/sources.md @@ -88,7 +88,7 @@ println(result) # output -NamedTuple{(:Name, :Friendcount), Tuple{String, Int64}}[(Name = "John", Friendcount = 3)] +@NamedTuple{Name::String, Friendcount::Int64}[(Name = "John", Friendcount = 3)] ``` ## IndexedTables diff --git a/test/runtests.jl b/test/runtests.jl index 0359ba3..8b851d1 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -500,6 +500,6 @@ include("test_macros.jl") # Int32 otherwise. Also only run on Julia 1.6 and newer, because # a lot of output printing was changed and doctests now can't be written # to work on multiple Julia versions. -Int==Int64 && VERSION>=v"1.6" && doctest(Query) +Int==Int64 && VERSION>=v"1.10" && doctest(Query) end