Skip to content

Commit d5520ac

Browse files
committed
more show() tests
1 parent 5a7e448 commit d5520ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/test_core.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,8 @@ end
462462
@testset "full and compact show" begin
463463
@test sprint(show, (@optic _.a)) == "(@o _.a)"
464464
@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)"
465467
@test sprint(show, (@optic log(_.a[2]))) == "(@o log(_.a[2]))"
466468
@test sprint(show, (@optic log(_).a[2])) == "(@o _.a[2]) ∘ log" # could be shorter, but difficult to dispatch correctly without piracy
467469
@test sprint(show, (@optic log(_.a[2])); context=:compact => true) == "log(_.a[2])"

0 commit comments

Comments
 (0)