@@ -0,0 +1,1016 @@
+package lua.value;%0A%0Aimport java.io.IOException;%0Aimport java.io.InputStream;%0A%0Aimport junit.framework.TestCase;%0A%0Apublic class LStringTest extends TestCase %7B%0A%09public void testToInputStream() throws IOException %7B%0A%09%09LString str = new LString(%22Hello%22);%0A%09%09%0A%09%09InputStream is = str.toInputStream();%0A%09%09%0A%09%09assertEquals( 'H', is.read() );%0A%09%09assertEquals( 'e', is.read() );%0A%09%09assertEquals( 2, is.skip( 2 ) );%0A%09%09assertEquals( 'o', is.read() );%0A%09%09assertEquals( -1, is.read() );%0A%09%09%0A%09%09assertTrue( is.markSupported() );%0A%09%09%0A%09%09is.reset();%0A%09%09%0A%09%09assertEquals( 'H', is.read() );%0A%09%09is.mark( 4 );%0A%09%09%0A%09%09assertEquals( 'e', is.read() );%0A%09%09is.reset();%0A%09%09assertEquals( 'e', is.read() );%0A%09%09%0A%09%09LString substr = str.substring( 1, 4 );%0A%09%09assertEquals( 3, substr.length() );%0A%09%09%0A%09%09is.close();%0A%09%09is = substr.toInputStream();%0A%09%09%0A%09%09assertEquals( 'e', is.read() );%0A%09%09assertEquals( 'l', is.read() );%0A%09%09assertEquals( 'l', is.read() );%0A%09%09assertEquals( -1, is.read() );%0A%09%09%0A%09%09is = substr.toInputStream();%0A%09%09is.reset();%0A%09%09%0A%09%09assertEquals( 'e', is.read() );%0A%09%7D%0A%7D%0A

Add unit test for LString.toInputStream (meant to commit this a while ago)