Skip to content

Commit c53b166

Browse files
committed
a couple tests
1 parent 77abfda commit c53b166

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/linalg/lu.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,3 +264,8 @@ U factor:
264264
0.0 0.0 1.0 0.0
265265
0.0 0.0 0.0 1.0"""
266266
end
267+
268+
@testset "propertynames" begin
269+
names = sort!(string.(Base.propertynames(lufact(rand(3,3)))))
270+
@test names == ["L", "P", "U", "factors", "info", "ipiv", "p"]
271+
end

test/reflection.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ mutable struct TLayout
324324
z::Int32
325325
end
326326
tlayout = TLayout(5,7,11)
327-
@test fieldnames(TLayout) == [:x, :y, :z]
327+
@test fieldnames(TLayout) == [:x, :y, :z] == Base.propertynames(tlayout)
328328
@test [(fieldoffset(TLayout,i), fieldname(TLayout,i), fieldtype(TLayout,i)) for i = 1:fieldcount(TLayout)] ==
329329
[(0, :x, Int8), (2, :y, Int16), (4, :z, Int32)]
330330
@test_throws BoundsError fieldtype(TLayout, 0)

0 commit comments

Comments
 (0)