We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a7e448 commit d5520acCopy full SHA for d5520ac
test/test_core.jl
@@ -462,6 +462,8 @@ end
462
@testset "full and compact show" begin
463
@test sprint(show, (@optic _.a)) == "(@o _.a)"
464
@test sprint(show, (@optic _.a + 1)) == "(@o _.a + 1)"
465
+ @test sprint(show, (@optic (_.a + 1) * 2)) == "(@o (_.a + 1) * 2)"
466
+ @test sprint(show, (@optic (_.a * 2) + 1)) == "(@o (_.a * 2) + 1)"
467
@test sprint(show, (@optic log(_.a[2]))) == "(@o log(_.a[2]))"
468
@test sprint(show, (@optic log(_).a[2])) == "(@o _.a[2]) ∘ log" # could be shorter, but difficult to dispatch correctly without piracy
469
@test sprint(show, (@optic log(_.a[2])); context=:compact => true) == "log(_.a[2])"
0 commit comments