From acfcd28636fa6093c7dc591f64477e4156e35bc7 Mon Sep 17 00:00:00 2001 From: dmkokovtsev Date: Tue, 3 Oct 2023 13:40:53 +0300 Subject: [PATCH] fix: more test cases for appending/prepending candles --- src/chart/__tests__/chart.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/chart/__tests__/chart.test.ts b/src/chart/__tests__/chart.test.ts index 493abada..bf0d4289 100644 --- a/src/chart/__tests__/chart.test.ts +++ b/src/chart/__tests__/chart.test.ts @@ -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)",