nc-photos/test/entity/file_util_test.dart
2021-10-09 16:46:18 +08:00

14 lines
362 B
Dart

import 'package:nc_photos/entity/file_util.dart' as file_util;
import 'package:test/test.dart';
void main() {
group("renameConflict", () {
test("w/ extension", () {
expect(file_util.renameConflict("test.jpg", 2), "test (2).jpg");
});
test("w/o extension", () {
expect(file_util.renameConflict("test", 2), "test (2)");
});
});
}