| Index: pkg/barback/test/asset_id_test.dart
|
| diff --git a/pkg/barback/test/asset_id_test.dart b/pkg/barback/test/asset_id_test.dart
|
| index 683403986336083eaa56a8be67665eb2bd9d8595..6e4a7d84db8370c567725c1aec576ff164bd2d56 100644
|
| --- a/pkg/barback/test/asset_id_test.dart
|
| +++ b/pkg/barback/test/asset_id_test.dart
|
| @@ -32,4 +32,15 @@ main() {
|
| expect(() => new AssetId.parse("app|"), throwsFormatException);
|
| });
|
| });
|
| +
|
| + test("equals another ID with the same package and path", () {
|
| + expect(new AssetId.parse("foo|asset.txt"), equals(
|
| + new AssetId.parse("foo|asset.txt")));
|
| +
|
| + expect(new AssetId.parse("foo|asset.txt"), isNot(equals(
|
| + new AssetId.parse("bar|asset.txt"))));
|
| +
|
| + expect(new AssetId.parse("foo|asset.txt"), isNot(equals(
|
| + new AssetId.parse("bar|other.txt"))));
|
| + });
|
| }
|
|
|