As far as i see there is no easy way to compare the content of two arrays.
e.g. I have two ByteArrays.
I would expect the following to work:
written.readBytes().should.equal(data)
It just compares the references and fails.
This one works:
written.readBytes().toList().should.equal(data.asList())
That's a little bit ugly in my opinion.
As far as i see there is no easy way to compare the content of two arrays.
e.g. I have two ByteArrays.
I would expect the following to work:
written.readBytes().should.equal(data)
It just compares the references and fails.
This one works:
written.readBytes().toList().should.equal(data.asList())
That's a little bit ugly in my opinion.