test and data for JAL-1447
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Thu, 20 Feb 2014 15:17:36 +0000 (15:17 +0000)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Thu, 20 Feb 2014 15:17:36 +0000 (15:17 +0000)
test/jalview/io/FileIOTester.java
test/jalview/io/test_fasta_stars.fa [new file with mode: 0644]
test/jalview/io/test_fasta_stars2.fa [new file with mode: 0644]

index d438424..5d10c35 100644 (file)
@@ -53,6 +53,8 @@ public class FileIOTester
   
   final static File ALIGN_FILE = new File("test/jalview/io/test_gz_fasta.gz");
   final static File NOTGZALIGN_FILE = new File("test/jalview/io/test_gz_fasta_notgz.gz");
+  final static File STARS_FA_FILE1 = new File("test/jalview/io/test_fasta_stars.fa");
+  final static File STARS_FA_FILE2 = new File("test/jalview/io/test_fasta_stars2.fa");
 
   private void assertValidFormat(String fmt, String src, FileParse fp)
   {
@@ -61,6 +63,20 @@ public class FileIOTester
     assertTrue("Data from '"+src+"' Expected to be '"+fmt+"' identified as '"+type+"'",type.equalsIgnoreCase(fmt));
   }
   @Test
+  public void testStarsInFasta1() throws IOException
+  {
+    String uri;
+    FileParse fp = new FileParse(uri=STARS_FA_FILE1.getAbsoluteFile().toString(),AppletFormatAdapter.FILE);
+    assertValidFormat("FASTA", uri, fp);
+  }
+  @Test
+  public void testStarsInFasta2() throws IOException
+  {
+    String uri;
+    FileParse fp = new FileParse(uri=STARS_FA_FILE2.getAbsoluteFile().toString(),AppletFormatAdapter.FILE);
+    assertValidFormat("FASTA", uri, fp);
+  }
+  @Test
   public void testGzipIo() throws IOException
   {     
     String uri;
diff --git a/test/jalview/io/test_fasta_stars.fa b/test/jalview/io/test_fasta_stars.fa
new file mode 100644 (file)
index 0000000..4595283
--- /dev/null
@@ -0,0 +1,8 @@
+>a 
+asdafoobar 
+asdafoobar 
+asdafoobar*
+>a 
+asdafoobar 
+asdafoobar 
+asdafoobar*
\ No newline at end of file
diff --git a/test/jalview/io/test_fasta_stars2.fa b/test/jalview/io/test_fasta_stars2.fa
new file mode 100644 (file)
index 0000000..946b9d4
--- /dev/null
@@ -0,0 +1,4 @@
+>a 
+asda*foobar* 
+asda*foobar* 
+asda*foobar*