| Index: pkg/matcher/lib/src/core_matchers.dart
|
| diff --git a/pkg/unittest/lib/src/core_matchers.dart b/pkg/matcher/lib/src/core_matchers.dart
|
| similarity index 99%
|
| copy from pkg/unittest/lib/src/core_matchers.dart
|
| copy to pkg/matcher/lib/src/core_matchers.dart
|
| index e8ffbc1b723f0b53d753c6c03ef97b409e08cde5..7acd7b4c66ffc03ad540eacf204ae18e43777c04 100644
|
| --- a/pkg/unittest/lib/src/core_matchers.dart
|
| +++ b/pkg/matcher/lib/src/core_matchers.dart
|
| @@ -2,7 +2,7 @@
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| -part of unittest.matcher;
|
| +part of matcher;
|
|
|
| /**
|
| * Returns a matcher that matches empty strings, maps or iterables
|
| @@ -700,9 +700,8 @@ class _HasLength extends Matcher {
|
| if (item.length * item.length >= 0) {
|
| return _matcher.matches(item.length, matchState);
|
| }
|
| - } catch (e) {
|
| - return false;
|
| - }
|
| + } catch (e) {}
|
| + return false;
|
| }
|
|
|
| Description describe(Description description) =>
|
| @@ -718,9 +717,8 @@ class _HasLength extends Matcher {
|
| return mismatchDescription.add('has length of ').
|
| addDescriptionOf(item.length);
|
| }
|
| - } catch (e) {
|
| - return mismatchDescription.add('has no length property');
|
| - }
|
| + } catch (e) {}
|
| + return mismatchDescription.add('has no length property');
|
| }
|
| }
|
|
|
|
|