From 7428d315297907b3bb52ddb099a348acffb87636 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 19 Oct 2020 18:07:29 +0100 Subject: [PATCH] JAL-3765 simple test that findAll finds all matches for a pattern when it is present multiple times in a sequence --- test/jalview/analysis/FinderTest.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/jalview/analysis/FinderTest.java b/test/jalview/analysis/FinderTest.java index 95e6c0d..764c56f 100644 --- a/test/jalview/analysis/FinderTest.java +++ b/test/jalview/analysis/FinderTest.java @@ -82,6 +82,16 @@ public class FinderTest DataSourceType.PASTE); av = af.getViewport(); al = av.getAlignment(); + + // JAL-3765 bug test data + String longSeqData = + ">O80429_MAIZE/2-140 Ferredoxin\n" + + "AAT---------ALSMSILR---APPPCFSSPLRLRV--AVAKPLA-APMRRQLLRAQATYNVKLITPEGEV\n" + + "ELQVPDDVYILDFAEEEGIDLPFSCRAGSCSSCAGKVVSGSVDQSDQSFLNDNQVADGWVLTCAAYPTSDVV\n" + + "IETHKEDDLL--\n" ; + af_oneseq=new FileLoader().LoadFileWaitTillLoaded(longSeqData, DataSourceType.PASTE); + av_oneseq = af_oneseq.getViewport(); + al_oneseq = av_oneseq.getAlignment(); } @AfterMethod(alwaysRun = true) -- 1.7.10.2