expekt icon indicating copy to clipboard operation
expekt copied to clipboard

Arrays

Open mosi0815 opened this issue 8 years ago • 0 comments

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.

mosi0815 avatar Nov 10 '16 15:11 mosi0815