Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions src/sprightly/test/extensions/string_extensions_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,25 @@ import 'package:sprightly/extensions/string_extensions.dart';

void main() {
group('Trimmer test', () {
// TODO:
}, skip: true);
test('trimming() test',(){
// arrange
final testString =
' abc ';
// act
final result = testString.trimming(testString);
// asset
expect(result,'abc');
});
test('toList test', (){
// arrange
final List<String> expectedList = ["a", "b", "c", "d", "a"];
final testString ='abcda';
// act
final actaulResult = testString.toList();
// asset
expect(actaulResult,expectedList);
});
});
group('CleanString test', () {
test('escapeMessy() test', () {
// arrange
Expand Down