mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
18 lines
443 B
Dart
18 lines
443 B
Dart
import 'package:test/test.dart';
|
|
import 'package:nc_photos/string_extension.dart';
|
|
|
|
void main() {
|
|
group("StringExtension", () {
|
|
test("trimLeftAny", () {
|
|
expect(".,.123.,.321.,.".trimLeftAny(".,"), "123.,.321.,.");
|
|
});
|
|
|
|
test("trimRightAny", () {
|
|
expect(".,.123.,.321.,.".trimRightAny(".,"), ".,.123.,.321");
|
|
});
|
|
|
|
test("trimAny", () {
|
|
expect(".,.123.,.321.,.".trimAny(".,"), "123.,.321");
|
|
});
|
|
});
|
|
}
|