mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
16 lines
295 B
Dart
16 lines
295 B
Dart
|
import 'package:np_common/unique.dart';
|
||
|
import 'package:test/test.dart';
|
||
|
|
||
|
void main() {
|
||
|
group("Unique", () {
|
||
|
test("same value", () {
|
||
|
expect(Unique(1) == Unique(1), false);
|
||
|
});
|
||
|
|
||
|
test("same instance", () {
|
||
|
final a = Unique(1);
|
||
|
expect(a == a, true);
|
||
|
});
|
||
|
});
|
||
|
}
|