blob: 6a033e589de4765e4b82f57036cc818b65f8c814 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
/**
* This is a JSX version of shellinford library:
* https://code.google.com/p/shellinford/
*
* License: http://shibu.mit-license.org/
*/
import "test-case.jsx";
import "burrows-wheeler-transform.jsx";
class _Test extends TestCase
{
var bwt : BurrowsWheelerTransform;
override function setUp() : void
{
this.bwt = new BurrowsWheelerTransform();
this.bwt.build('abracadabra' + BurrowsWheelerTransform.END_MARKER);
}
function test_get() : void
{
this.expect(this.bwt.get("$")).toBe("ard$rcaaaabb");
}
}
|