From e1e842805870c290b29688f8d97c34a2400c5eb0 Mon Sep 17 00:00:00 2001 From: Alexander Plavin Date: Wed, 28 Feb 2024 07:01:10 -0500 Subject: [PATCH] call test_modify_law --- ext/AccessorsTestExt.jl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ext/AccessorsTestExt.jl b/ext/AccessorsTestExt.jl index ce1788ec..4278092a 100644 --- a/ext/AccessorsTestExt.jl +++ b/ext/AccessorsTestExt.jl @@ -16,6 +16,8 @@ function Accessors.test_getset_laws(lens, obj, val1, val2; cmp=(==)) obj12 = set(obj1, lens, val2) obj2 = set(obj12, lens, val2) @test cmp(obj12, obj2) + + Accessors.test_modify_law(identity, lens, obj; cmp) end function Accessors.test_modify_law(f, lens, obj; cmp=(==)) @@ -48,6 +50,8 @@ function Accessors.test_getsetall_laws(optic, obj, vals1, vals2; cmp=(==)) obj12 = setall(obj1, optic, vals2) obj2 = setall(obj12, optic, vals2) @test obj12 == obj2 + + Accessors.test_modify_law(identity, optic, obj; cmp) end end