Skip to content

Commit 5ae5407

Browse files
committed
test: more tests, more coverage
1 parent f2be9f8 commit 5ae5407

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/runtests.jl

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,17 @@ using Test
2424
@testset "too few arguments in call" begin
2525
@test_throws ArgumentError Fix{10}(Returns(nothing), 7)(1, 2, 3)
2626
end
27+
@testset "instance properties" begin
28+
fixed = Fix1(sin, 0.3)
29+
@testset "`propertynames`" begin
30+
@test (:f, :x) === @inferred propertynames(fixed)
31+
@test (:f, :x) === @inferred propertynames(fixed, false)
32+
@test (:f, :x) === @inferred propertynames(fixed, true)
33+
end
34+
@testset "access to property that does not exist" begin
35+
@test_throws Exception fixed.z
36+
end
37+
end
2738
end
2839

2940
using Aqua: Aqua

0 commit comments

Comments
 (0)