Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ using Test
@testset "too few arguments in call" begin
@test_throws ArgumentError Fix{10}(Returns(nothing), 7)(1, 2, 3)
end
@testset "instance properties" begin
fixed = Fix1(sin, 0.3)
@testset "`propertynames`" begin
@test (:f, :x) === @inferred propertynames(fixed)
@test (:f, :x) === @inferred propertynames(fixed, false)
@test (:f, :x) === @inferred propertynames(fixed, true)
end
@testset "access to property that does not exist" begin
@test_throws Exception fixed.z
end
end
end

using Aqua: Aqua
Expand Down