Skip to content

Commit 87c83da

Browse files
committed
export SUnitRange
1 parent 1bc691d commit 87c83da

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

src/StaticArrays.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import LinearAlgebra: transpose, adjoint, dot, eigvals, eigen, lyap, tr,
2626
end
2727

2828
export StaticScalar, StaticArray, StaticVector, StaticMatrix
29-
export Scalar, SArray, SVector, SMatrix
29+
export Scalar, SArray, SVector, SMatrix, SUnitRange
3030
export MArray, MVector, MMatrix
3131
export FieldVector
3232
export SizedArray, SizedVector, SizedMatrix

test/SUnitRange.jl

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
@testset "SUnitRange" begin
2-
@test length(StaticArrays.SUnitRange(1,3)) === 3
3-
@test length(StaticArrays.SUnitRange(1,-10)) === 0
2+
@test length(SUnitRange(1,3)) === 3
3+
@test length(SUnitRange(1,-10)) === 0
44

5-
@test_throws BoundsError StaticArrays.SUnitRange(2,4)[0]
6-
@test StaticArrays.SUnitRange(2,4)[1] === 2
7-
@test StaticArrays.SUnitRange(2,4)[2] === 3
8-
@test StaticArrays.SUnitRange(2,4)[3] === 4
9-
@test_throws BoundsError StaticArrays.SUnitRange(2,4)[4]
5+
@test_throws BoundsError SUnitRange(2,4)[0]
6+
@test SUnitRange(2,4)[1] === 2
7+
@test SUnitRange(2,4)[2] === 3
8+
@test SUnitRange(2,4)[3] === 4
9+
@test_throws BoundsError SUnitRange(2,4)[4]
1010

11-
@test_throws Exception StaticArrays.SUnitRange{1, -1}()
12-
@test_throws TypeError StaticArrays.SUnitRange{1, 1.5}()
11+
@test_throws Exception SUnitRange{1, -1}()
12+
@test_throws TypeError SUnitRange{1, 1.5}()
1313

14-
ur_str = sprint(show, StaticArrays.SUnitRange)
14+
ur_str = sprint(show, SUnitRange)
1515
@test ur_str == "SUnitRange"
1616
end

0 commit comments

Comments
 (0)