Created
April 25, 2013 13:33
-
-
Save johandahlberg/5459719 to your computer and use it in GitHub Desktop.
Unit test example for the BetterCodeExample burrows wheeler functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import org.scalatest.FunSuite | |
import BetterCodeExample._ | |
class BetterCodeExampleUnitTests extends FunSuite { | |
test("Burrow wheelers transform of ^BANANA|") { | |
assert(BetterCodeExample.burrowsWheelersTransform("^BANANA|") === """BNN^AA|A""") | |
} | |
test("Burrow wheelers transform of a empty string") { | |
intercept[IllegalArgumentException] { | |
(BetterCodeExample.burrowsWheelersTransform("")) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment