From 14e97ab58bd9d731d75ee9aa04c6aa3c039617fc Mon Sep 17 00:00:00 2001 From: Kelvin Kavisi <68240897+kekavc24@users.noreply.github.com> Date: Wed, 19 Jun 2024 04:25:50 +0100 Subject: [PATCH] Remove keep chomping indicator tests --- test/string_test.dart | 3 --- test/utils_test.dart | 22 ---------------------- 2 files changed, 25 deletions(-) diff --git a/test/string_test.dart b/test/string_test.dart index a4420b3..8c9958d 100644 --- a/test/string_test.dart +++ b/test/string_test.dart @@ -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', diff --git a/test/utils_test.dart b/test/utils_test.dart index af3d71a..9ec0f83 100644 --- a/test/utils_test.dart +++ b/test/utils_test.dart @@ -318,17 +318,6 @@ 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( @@ -336,17 +325,6 @@ strings: 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(''' - |