Skip to content

Commit

Permalink
Merge pull request #18 from JuliaPluto/fix-1.6-tests
Browse files Browse the repository at this point in the history
Fix julia 1.6 tests
  • Loading branch information
pfitzseb authored Mar 13, 2024
2 parents 1476500 + 29bac34 commit a8df7ae
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ end
end
end

@testset "FieldCompletion" begin
skip = VERSION v"1.11.0-DEV"
@test "offset" in comps("split(\"\", ' ')[1].") skip = skip
@test "offset" in comps("split(\"\", ' ')[1].offset") skip = skip
@test "offset" in comps("split(\"\", ' ')[1].offsett") skip = skip
@test "offset" in comps("split(\"\", ' ')[1].ofst") skip = skip
@test "offset" in comps("split(\"\", ' ')[1].") skip = skip
VERSION < v"1.11.0-DEV" && @testset "FieldCompletion" begin
@test "offset" in comps("split(\"\", ' ')[1].")
@test "offset" in comps("split(\"\", ' ')[1].offset")
@test "offset" in comps("split(\"\", ' ')[1].offsett")
@test "offset" in comps("split(\"\", ' ')[1].ofst")
@test "offset" in comps("split(\"\", ' ')[1].")
end

@testset "BalashCompletion" begin
Expand Down Expand Up @@ -99,7 +98,7 @@ end
@test comp("Mis") == "Missing"
end

@testset "inferrability" begin
VERSION >= v"1.7" && @testset "inferrability" begin
@inferred FuzzyCompletions.completions("foo", lastindex("foo"), @__MODULE__)
end

Expand Down

0 comments on commit a8df7ae

Please sign in to comment.