Skip to content

Commit 845e66a

Browse files
committed
test: more coverage
1 parent 37c0e65 commit 845e66a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_non_number_eval_tree_array.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ end
5353
const Max2Tensor{T} = DynamicTensor{T,2,Tuple{Base.RefValue{T},Vector{T},Matrix{T}}}
5454
Max2Tensor{T}(x) where {T} = DynamicTensor{T,2}(x)
5555

56+
# Before implementing, we get a nice error message:
57+
if VERSION >= v"1.9-"
58+
@test_throws "Base number type of type" DE.get_number_type(DynamicTensor{Float64,2})
59+
end
60+
5661
DE.get_number_type(::Type{<:DynamicTensor{T}}) where {T} = T
5762

5863
@generated function DE.is_valid(val::DynamicTensor{<:Any,N}) where {N}

0 commit comments

Comments
 (0)