File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
packages/netglade_utils/test/src/extensions Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -280,5 +280,27 @@ void main() {
280
280
expect (value.ifBlank ('aaa' ), equals (value));
281
281
});
282
282
});
283
+
284
+ group ("firstLetterUppercase" , () {
285
+ test ("empty message" , () {
286
+ final String value = "" ;
287
+ expect (value.firstLetterUppercase (), equals ("" ));
288
+ });
289
+
290
+ test ("message with whitespaces" , () {
291
+ final String value = " " ;
292
+ expect (value.firstLetterUppercase (), equals (value));
293
+ });
294
+
295
+ test ("message with non-whitespace characters" , () {
296
+ final String value = "xxx" ;
297
+ expect (value.firstLetterUppercase (), equals ("Xxx" ));
298
+ });
299
+
300
+ test ("message with 1 character" , () {
301
+ final String value = "x" ;
302
+ expect (value.firstLetterUppercase (), equals ("X" ));
303
+ });
304
+ });
283
305
});
284
306
}
You can’t perform that action at this time.
0 commit comments