You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this should be a bug, although I accept there might be an argument I haven't considered.
Given this simple testcase I would consider the two values to compare as equal.
import{DateTime,Duration}from'luxon';functionmain(){consttestoffset=Duration.fromISO("P1W");consttestzero=Duration.fromMillis(0);constsame_offset=testoffset.plus(testzero)console.assert(testoffset.equals(same_offset),"Aren't these logically the same");};main();
But have I missed something ?
The text was updated successfully, but these errors were encountered:
I think this should be a bug, although I accept there might be an argument I haven't considered.
Given this simple testcase I would consider the two values to compare as equal.
But have I missed something ?
The text was updated successfully, but these errors were encountered: