Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
fluttertpc_get
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Eduardo Florence
2021-01-05 00:53:55 -0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c721c4f5f167c4d5f2e11423fe1f62b065dfb179
c721c4f5
1 parent
5e746d38
Capitalize: Adjust Tests
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
test/utils/extensions/string_extensions_test.dart
test/utils/extensions/string_extensions_test.dart
View file @
c721c4f
...
...
@@ -679,14 +679,17 @@ void main() {
expect
(
'foo bar'
.
capitalize
,
'Foo Bar'
);
expect
(
'FoO bAr'
.
capitalize
,
'Foo Bar'
);
expect
(
'FOO BAR'
.
capitalize
,
'Foo Bar'
);
expect
(
''
.
capitalize
,
null
);
expect
(
null
.
capitalize
,
null
);
expect
(
''
.
capitalize
,
''
);
expect
(
'foo bar '
.
capitalize
,
'Foo Bar '
);
});
test
(
'var.capitalizeFirst'
,
()
{
expect
(
'foo bar'
.
capitalizeFirst
,
'Foo bar'
);
expect
(
'FoO bAr'
.
capitalizeFirst
,
'Foo bar'
);
expect
(
'FOO BAR'
.
capitalizeFirst
,
'Foo bar'
);
expect
(
''
.
capitalizeFirst
,
null
);
expect
(
null
.
capitalizeFirst
,
null
);
expect
(
''
.
capitalizeFirst
,
''
);
});
test
(
'var.removeAllWhitespace'
,
()
{
...
...
Please
register
or
login
to post a comment