Julienne currently has .equalsExpected. overloads for default integer and int64 (along with characters, strings and c_ptr).
It would be nice to extend this to include all the integer kinds defined by the standard (int8, int16, int32 and int64). These are technically optional, but all compilers have them and one of them (usually int32) will match the default integer.
I encountered this in practice when writing tests for Caffeine where I wanted .equalsExpected. for int8.
Of course for symmetry the other integer relational operators should also probably accept the entire set of integer kinds, although my current use case was only for .equalsExpected..
This request is lower priority than #136, because here the workaround is an explicit widening conversion with no information loss.
Julienne currently has
.equalsExpected.overloads for default integer andint64(along with characters, strings andc_ptr).It would be nice to extend this to include all the integer kinds defined by the standard (
int8,int16,int32andint64). These are technically optional, but all compilers have them and one of them (usuallyint32) will match the default integer.I encountered this in practice when writing tests for Caffeine where I wanted .equalsExpected. for
int8.Of course for symmetry the other integer relational operators should also probably accept the entire set of integer kinds, although my current use case was only for
.equalsExpected..This request is lower priority than #136, because here the workaround is an explicit widening conversion with no information loss.