20092010201120122013201420152016201720182019
stream.writeBit(1); stream.readBit(); for (double sample : sampleDoubles()) { assertEquals(sample, stream.readDouble(), 0.00000001); } assertEquals(1, stream.getData().readable()); } finally { }
20212022202320242025202620272028202920302031
@Test public void fReadDouble_void() throws Exception { try { Stream stream = new Stream(); stream.readDouble(); fail(); } catch (EOFException ex) { } finally { }
20302031203220332034203520362037203820392040
} try { Stream stream = new Stream(); stream.writeBit(1); stream.readDouble(); fail(); } catch (InsufficientBufferException ex) { } finally { }
20452046204720482049205020512052205320542055
stream.write(1); stream.write(1); stream.write(1); stream.write(1); stream.write(1); stream.readDouble(); fail(); } catch (InsufficientBufferException ex) { } finally { } }