Skip to content

Commit

Permalink
fix tests on Julia 1.11 (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
palday authored Jan 27, 2025
1 parent ce4a772 commit bab9ca7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Manifest.toml
Manifest-v*.toml
4 changes: 3 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ include("set_up_tests.jl")
@test typeof(WeakKeyIdDict(())) == WeakKeyIdDict{Any,Any}

# constructing from iterators
@test_throws BoundsError WeakKeyIdDict(((),))
# pre-1.11, this threw a BoundsError: attempt to access Tuple{} at index [1]
# on 1.11, this throws an ArgumentError: AbstractDict(kv): kv needs to be an iterator of 2-tuples or pairs
@test_throws Union{BoundsError,ArgumentError} WeakKeyIdDict(((),))
@test_throws ArgumentError IdDict(nothing)

# test many constructors with type parameters specified
Expand Down

0 comments on commit bab9ca7

Please sign in to comment.