-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revise some character table tests to use a doctest #2824
Revise some character table tests to use a doctest #2824
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O.k.
Thus the message is:
Whenever we have tests concerning the printed format of objects then we should use jldoctest
instead of @testset
& @test
.
(I have another testfile that has to be revised in the same spirit.)
These tests deal with testing how character tables are printed in various situations. We change this to (ab)use the `jldoctest` system from Documenter. This brings with it the advantage that it is very easy to adjust the tests for desired changes to the printing: it can be done changing doctest(nothing, [AuxDocTest_GroupCharacters]) to doctest(nothing, [AuxDocTest_GroupCharacters]; fix=true) and then running this in the Julia REPL: include("test/Groups/group_characters.jl")
78dbf63
to
492f8fe
Compare
@ThomasBreuer exactly |
@ThomasBreuer wrote:
Which one is that? I am aware of |
|
These tests deal with testing how character tables are printed in various situations. We change this to (ab)use the `jldoctest` system from Documenter. This brings with it the advantage that it is very easy to adjust the tests for desired changes to the printing: it can be done changing doctest(nothing, [AuxDocTest_GroupCharacters]) to doctest(nothing, [AuxDocTest_GroupCharacters]; fix=true) and then running this in the Julia REPL: include("test/Groups/group_characters.jl")
These tests deal with testing how character tables are printed in various situations. We change this to (ab)use the
jldoctest
system from Documenter. This brings with it the advantage that it is very easy to adjust the tests for desired changes to the printing: it can be done changingto
and then running this in the Julia REPL:
This PR is motived by PR #2774 where it helps me to adjust the tests for the revised printing. But I think it's also of independent benefit.