From 4d7c590dd2f8cb0086509c0ca163b9fcc8b3cb21 Mon Sep 17 00:00:00 2001 From: Alex Ross Date: Fri, 7 Sep 2018 10:47:14 -0700 Subject: [PATCH] Added one more test case --- src/addons/search/search.test.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/addons/search/search.test.ts b/src/addons/search/search.test.ts index 99aecc2fa4..e5e49def60 100644 --- a/src/addons/search/search.test.ts +++ b/src/addons/search/search.test.ts @@ -55,15 +55,24 @@ describe('search addon', function(): void { term.core.write('texttextHellotext\r\n'); term.core.write('texttexttextHellotext'); term.pushWriteData(); + /* + texttextHe + llotext + texttextte + xtHellotex + t + */ const hello0 = (term.searchHelper as any)._findInLine('Hello', 0); const hello1 = (term.searchHelper as any)._findInLine('Hello', 1); const hello2 = (term.searchHelper as any)._findInLine('Hello', 2); const hello3 = (term.searchHelper as any)._findInLine('Hello', 3); + const llo = (term.searchHelper as any)._findInLine('llo', 1); expect(hello0).eql({col: 8, row: 0, term: 'Hello'}); expect(hello1).eql(undefined); expect(hello2).eql({col: 2, row: 3, term: 'Hello'}); expect(hello3).eql(undefined); + expect(llo).eql(undefined); }); }); });