fix a doctest and a statement#4602
Conversation
By default, `gen(abelian_closure(QQ)[1])(5)` is printed as `zeta(5)`. However, a statement and a doctest in a `.md` file claimed that `z(5)` is printed. (This doctest was not executed in `Oscar.build_doc(doctest=true)` because it was marked as `@jldoctest` not as `jldoctest` --it took me some time until I understood the problem.)
Otherwise all examples that are run later look differently.
|
This situation is challenging: Then you change the default behaviour, for example as follows. But there seems to be no way to get the default behaviour back, i.e., that the non-unicode and unicode printing is different. |
|
(I wish we would not allow changing the printing.) Anyway, if one overrides the default, then I don't find it too surprising that |
|
If one looks at the code then one can expect this behaviour, but is it also intended?
|
|
Yes, I know the pains, see https://github.com/oscar-system/Oscar.jl/pull/2437/files. I had to add an explicit I think there was a reason for this to not be a
Since this was initially only about chaning a |
|
O.k., I turn this into a non-doctest. |
|
I wish we did not have |
Yes. It is not clear to the user that there is just one global object behind Concerning the missing functionality to get back to the default behaviour, if we want to keep backwards compatibility then we could add a new function |
|
It needs "more work", in that currently we cannot unset |
By default,
gen(abelian_closure(QQ)[1])(5)is printed aszeta(5). However, a statement and a doctest in a.mdfile claimed thatz(5)is printed.(This doctest was not executed in
Oscar.build_doc(doctest=true)because it was marked as@jldoctestnot asjldoctest--it took me some time until I understood the problem.)This fix was suggested by @thofma in #4585.