mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
15 lines
295 B
Dart
15 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);
|
|
});
|
|
});
|
|
}
|