Skip to content

Commit

Permalink
Remove keep chomping indicator tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kekavc24 committed Jun 19, 2024
1 parent b75838e commit 14e97ab
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
3 changes: 0 additions & 3 deletions test/string_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@ final _testStrings = [
'whitespace\n after line breaks',
'whitespace\n \nbetween line breaks',
'whitespace and line breaks at end 1\n ',
'whitespace and line breaks at end 2 \n \n',
'whitespace and line breaks at end 3 \n\n',
'whitespace and line breaks at end 3 \n\n ',
'\n line break at the start',
'word',
'foo bar',
Expand Down
22 changes: 0 additions & 22 deletions test/utils_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -318,35 +318,13 @@ strings:
test'''));
});

test('generates folded strings with trailing line break and space', () {
final doc = YamlEditor('');

doc.update(
[],
wrapAsYamlNode('test\ntest\n ', scalarStyle: ScalarStyle.FOLDED),
);

expect(doc.toString(), equals('>+\n test\n\n test\n '));
});

test('generates literal strings properly', () {
final doc = YamlEditor('');
doc.update(
[], wrapAsYamlNode('test\ntest', scalarStyle: ScalarStyle.LITERAL));
expect(doc.toString(), equals('|-\n test\n test'));
});

test('generates literal string with trailing line break and space', () {
final doc = YamlEditor('');

doc.update(
[],
wrapAsYamlNode('test\ntest\n ', scalarStyle: ScalarStyle.LITERAL),
);

expect(doc.toString(), equals('|+\n test\n test\n '));
});

test('rewrites literal strings properly', () {
final doc = YamlEditor('''
- |
Expand Down

0 comments on commit 14e97ab

Please sign in to comment.