Skip to content

Commit

Permalink
Make tests more reasonable (#749)
Browse files Browse the repository at this point in the history
  • Loading branch information
voodoo11 authored Jul 2, 2021
1 parent cc23e19 commit 2682e69
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions test/cruds/removing-rows.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,44 +762,50 @@ describe('Removing rows - row range', () => {
const engine = HyperFormula.buildFromArray([
['1', '2'],
['1', '2'],
['1', '2', '=SUM(1:3)']
['1', '2'],
['=SUM(1:3)']
])

engine.removeRows(0, [0, 1])

expectEngineToBeTheSameAs(engine, HyperFormula.buildFromArray([
['1', '2'],
['1', '2', '=SUM(1:2)']
['1', '2'],
['=SUM(1:2)']
]))
})

it('removing rows - middle of row range', () => {
const engine = HyperFormula.buildFromArray([
['1', '2'],
['1', '2'],
['1', '2', '=SUM(1:3)']
['1', '2'],
['=SUM(1:3)']
])

engine.removeRows(0, [1, 1])

expectEngineToBeTheSameAs(engine, HyperFormula.buildFromArray([
['1', '2'],
['1', '2', '=SUM(1:2)']
['1', '2'],
['=SUM(1:2)']
]))
})

it('removing rows - end of row range', () => {
const engine = HyperFormula.buildFromArray([
['1', '2', '=SUM(1:3)'],
['1', '2'],
['1', '2']
['1', '2'],
['1', '2'],
['=SUM(1:3)']
])

engine.removeRows(0, [2, 1])

expectEngineToBeTheSameAs(engine, HyperFormula.buildFromArray([
['1', '2', '=SUM(1:2)'],
['1', '2']
['1', '2'],
['1', '2'],
['=SUM(1:2)']
]))
})
})
Expand Down

0 comments on commit 2682e69

Please sign in to comment.