Skip to content

Commit

Permalink
Improve Encoding in SmithWatermanUnitTest.java
Browse files Browse the repository at this point in the history
Signed-off-by: [email protected]
  • Loading branch information
Kmannth committed Jan 31, 2022
1 parent e6e667a commit 17b3cf0
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,22 +49,22 @@ public void inputDataTest() {
altString = in.readLine();
} catch (IOException e) {System.err.println("Caught IOException: " + e.getMessage());}
try {
smithWaterman.align(null, altString.getBytes(), SWparameters, SWstrategy);
smithWaterman.align(null, altString.getBytes("UTF-8"), SWparameters, SWstrategy);
Assert.fail("NullPointerException expected.");
} catch(NullPointerException e) {}

try {
smithWaterman.align(refString.getBytes(), null, SWparameters, SWstrategy);
smithWaterman.align(refString.getBytes("UTF-8"), null, SWparameters, SWstrategy);
Assert.fail("NullPointerException expected.");
} catch(NullPointerException e) {}

try {
smithWaterman.align(refString.getBytes(), altString.getBytes(), null, SWstrategy);
smithWaterman.align(refString.getBytes("UTF-8"), altString.getBytes("UTF-8"), null, SWstrategy);
Assert.fail("NullPointerException expected.");
} catch(NullPointerException e) {}

try {
smithWaterman.align(refString.getBytes(), altString.getBytes(), SWparameters, null);
smithWaterman.align(refString.getBytes("UTF-8"), altString.getBytes("UTF-8"), SWparameters, null);
Assert.fail("NullPointerException expected.");
} catch(NullPointerException e) {}
} catch (java.io.IOException e) {
Expand Down

0 comments on commit 17b3cf0

Please sign in to comment.