rescript-date icon indicating copy to clipboard operation
rescript-date copied to clipboard

reversed args and some tests

Open EthanBonsignori opened this issue 3 years ago • 0 comments

Hey there,

While writing wrappers for ReDate methods for use in my hybrid TS/ReScript codebase I noticed that both setSeconds and subMonths had reversed args positions from the rest of their respective methods. I went ahead and swapped them to be inline and fixed the associated tests for subMonths while adding very simple tests for the rest of the setX methods.

EthanBonsignori avatar Jun 30 '22 20:06 EthanBonsignori