       b.readByte()
     ).toThrow('Error')
   
-  it 'can write and read byte sequences', ->
+  it 'can read and write byte sequences', ->
     b = new ByteBuffer(8)
     
     expect(->

    
    expect(b.end().available).toEqual(0)
  
  it 'can be written to and read from in big-endian', ->
    b = new ByteBuffer(26)
    
    b.writeByte(-1 << 7)

    expect(b.readFloat()).toBeNear(Math.PI, 0.0000001)
    expect(b.readDouble()).toBeNear(Math.PI, 0)

  it 'can read and write in little-endian', ->
    b = new ByteBuffer(26, ByteBuffer.LITTLE_ENDIAN)
    
    b.writeByte(-1 << 7)
