Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
WIP: test if Arrays containing BigNumbers and ordinary integers are c…
…ompared appropriately
  • Loading branch information
SebastianG committed Feb 9, 2019
commit f4c4b9c929cc5782c5566d2c4d5cbba5b025552e
2 changes: 2 additions & 0 deletions test/diff_test.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -198,3 +198,5 @@ describe 'Big Number Support', ->
it "should handle a diff when old value contains a Big Number value and new value is an ordinary number", ->
assert.deepEqual { __old: BigNumber('3e+5000'), __new: 2}, diff(BigNumber('3e+5000'), 2, bigNumberSupport: true)

it "should handle a diff for an array with Big Number and ordinary integers", ->
assert.deepEqual [['~', {__old: BigNumber('3e+5000'), __new: 2}], ['~', {__old: 1, __new: BigNumber('12345678901234567890')}]], diff([BigNumber('3e+5000'), 1], [2, BigNumber('12345678901234567890')], bigNumberSupport: true)