Skip to content

Commit 34019b5

Browse files
committed
Cov
1 parent cdc4995 commit 34019b5

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

  • DifferentiationInterface/test/Core/Internals

DifferentiationInterface/test/Core/Internals/basis.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using DifferentiationInterface: basis
1+
using DifferentiationInterface: basis, multibasis
22
using LinearAlgebra
33
using StaticArrays, JLArrays
44
using Test
@@ -8,6 +8,9 @@ using Test
88
@test basis(rand(3), 2) isa Vector
99
@test basis(rand(3), 2) == b_ref
1010
@test basis(jl(rand(3)), 2) isa JLArray
11+
@test Array(basis(jl(rand(3)), 2)) == [0, 1, 0]
12+
@test multibasis(jl(rand(3)), [1, 2]) isa JLArray
13+
@test Array(multibasis(jl(rand(3)), [1, 2])) == [1, 1, 0]
1114
@test all(basis(jl(rand(3)), 2) .== b_ref)
1215
@test basis(@SVector(rand(3)), 2) isa SVector
1316
@test basis(@SVector(rand(3)), 2) == b_ref

0 commit comments

Comments
 (0)