Add position and pass msg to underlying func in InDeltaSlice, InDeltaMapValues, and InEpsilonSlice
Changes
Add position information into the msgAndArgs slice in those 3 funcs
at index: for slice index
at key: for map key
Motivation
When using those 3 functions, users don't know which key/index of the map/slice that produces the error because currently it's not added into the msgAndArgs slice.
Summary
Add position and pass msg to underlying func in
InDeltaSlice
,InDeltaMapValues
, andInEpsilonSlice
Changes
msgAndArgs
slice in those 3 funcsat index:
for slice indexat key:
for map keyMotivation
When using those 3 functions, users don't know which key/index of the map/slice that produces the error because currently it's not added into the
msgAndArgs
slice.Example
InDeltaSlice
Before
After
InDeltaMapValues
Before
After
InEpsilonSlice
Before
After