Skip to content

Commit

Permalink
fix: more test cases for appending/prepending candles
Browse files Browse the repository at this point in the history
  • Loading branch information
kokovtsev committed Oct 3, 2023
1 parent d106364 commit acfcd28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/chart/__tests__/chart.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,13 @@ describe('chart', () => {
['prepend candles', [candles.slice(10), candles.slice(0, 10)]],
['prepend with a gap', [candles.slice(0, 10), candles.slice(20, 30)]],
['prepend with overlap', [candles.slice(10), candles.slice(0, 20)]],
['prepend with full overlap', [candles.slice(10), candles]],
['only update existing candles', [candles, candles.slice(10, 20)]],
['update all candles', [candles, candles]],
['append candles', [candles.slice(0, 10), candles.slice(10)]],
['append candles with a gap', [candles.slice(0, 10), candles.slice(20)]],
['append candles with overlap', [candles.slice(0, 20), candles.slice(10)]],
['append candles with full overlap', [candles.slice(0, 20), candles]],
['prepend and append', [candles.slice(10, 20), candles.slice(0, 30)]],
[
"fill in the gap (won't work but should not error)",
Expand Down

0 comments on commit acfcd28

Please sign in to comment.