dart-archive / mock

A library for mocking classes - DEPRECATED
https://pub.dartlang.org/packages/mock
BSD 3-Clause "New" or "Revised" License
0 stars 2 forks source link

String matcher says both start the same when one is empty #13

Open dskloetg opened 9 years ago

dskloetg commented 9 years ago

expect('', 'Hello')

Fails with the message: Expected: 'Hello' Actual: '' Which: is different. Both strings start the same, but the given value is missing the following trailing characters: Hello

It seems weird to say that the strings start the same when one of them is empty.