summaryrefslogtreecommitdiff
path: root/test/utils/string_utils_test.dart
diff options
context:
space:
mode:
authormirror <mirror@localhost>2026-11-22 08:41:00 +0900
committermirror <mirror@localhost>2026-11-22 08:41:00 +0900
commit449d8b74bd6d9dae98a07254cdfad677b920e7b0 (patch)
treec131c3528c4d517f56e19b854a7453fedb097d40 /test/utils/string_utils_test.dart
downloadaves-src-master.tar.gz
aves-src-master.zip
snapshot of aves v1.13.12 (secrets removed: android/app/google-services.json)HEADv1.13.12master
Diffstat (limited to 'test/utils/string_utils_test.dart')
-rw-r--r--test/utils/string_utils_test.dart19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/utils/string_utils_test.dart b/test/utils/string_utils_test.dart
new file mode 100644
index 0000000..a7792fb
--- /dev/null
+++ b/test/utils/string_utils_test.dart
@@ -0,0 +1,19 @@
+import 'package:aves/utils/string_utils.dart';
+import 'package:test/test.dart';
+
+void main() {
+ test('Sentence case', () {
+ expect('XResolution'.toSentenceCase(), 'X Resolution');
+ expect('PixelXDimension'.toSentenceCase(), 'Pixel X Dimension');
+ expect('FocalPointX'.toSentenceCase(), 'Focal Point X');
+
+ expect('ISOSpeedRatings[1]'.toSentenceCase(), 'ISO Speed Ratings [1]');
+ expect('LegacyIPTCDigest'.toSentenceCase(), 'Legacy IPTC Digest');
+ expect('DocumentID'.toSentenceCase(), 'Document ID');
+
+ expect('H'.toSentenceCase(), 'H');
+ expect('LW[1]'.toSentenceCase(), 'LW [1]');
+
+ expect('bits_per_raw_sample'.toSentenceCase(), 'Bits Per Raw Sample');
+ });
+}