diff --git a/test/test_classes.jl b/test/test_classes.jl index 2d5a116..e752467 100644 --- a/test/test_classes.jl +++ b/test/test_classes.jl @@ -6,6 +6,11 @@ using Classes @test isclass(AbstractClass) == false # not concrete @test isclass(Int) == false # not <: AbstractClass +""" + Foo + +A test class +""" @class Foo begin foo::Int @@ -20,6 +25,10 @@ end @test classof(AbstractFoo) == Foo @test classof(Foo) == Foo +@test string(@doc(Foo)) == """Foo + +A test class +""" @test superclass(Foo) == Class @test_throws Exception superclass(AbstractFoo) @@ -157,4 +166,4 @@ obj = AbstractLog{Float64}([1. 2.; 3. 4.]) # function (ParameterizedSub{T3, T4}(one::T1, two::T2, x::Float64, y::Float64; )::Any) where {T3 <: TupleHolder, T4 <: TupleHolder} # #= /Users/rjp/.julia/packages/MacroTools/4AjBS/src/utils.jl:302 =# # new{T3, T4}(one, two, x, y) -# end \ No newline at end of file +# end