Skip to content

Commit

Permalink
call test_modify_law
Browse files Browse the repository at this point in the history
  • Loading branch information
aplavin authored Feb 28, 2024
1 parent 681974d commit e1e8428
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/AccessorsTestExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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=(==))
Expand Down Expand Up @@ -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

0 comments on commit e1e8428

Please sign in to comment.