@@ -746,28 +746,28 @@ class LexerTests : XCTestCase {
746746 // Tests for Blockstring support
747747 //
748748
749- func testBlockStringIndentationAndBlankLine ( ) throws {
749+ func testBlockStringIndentAndBlankLine ( ) throws {
750750 let rawString = " \n \n \n TopLevel { \n indented \n alsoIndented \n } \n \n \n \t \t \n "
751751 let cleanedString = blockStringValue ( rawValue: rawString)
752752
753753 XCTAssertEqual ( cleanedString, " TopLevel { \n indented \n alsoIndented \n } " )
754754 }
755755
756- func testBlockStringDoubleIndentationAndBlankLine ( ) throws {
756+ func testBlockStringDoubleIndentAndBlankLine ( ) throws {
757757 let rawString = " \n \n \n TopLevel { \n indented: { \n foo: String \n } \n alsoIndented \n } \n \n \n \t \t \n "
758758 let cleanedString = blockStringValue ( rawValue: rawString)
759759
760760 XCTAssertEqual ( cleanedString, " TopLevel { \n indented: { \n foo: String \n } \n alsoIndented \n } " )
761761 }
762762
763- func testBlockStringIndentationAndBlankLineFirstLineNotIndentedWeird ( ) throws {
763+ func testBlockStringIndentAndBlankLineFirstLineNotIndent ( ) throws {
764764 let rawString = " \n \n \n TopLevel { \n indented \n alsoIndented \n } \n \n \n \t \t \n "
765765 let cleanedString = blockStringValue ( rawValue: rawString)
766766
767767 XCTAssertEqual ( cleanedString, " TopLevel { \n indented \n alsoIndented \n } " )
768768 }
769769
770- func testBlockStringIndentationMultilineAndBlankLineFirstLineNotIndentedWeird ( ) throws {
770+ func testBlockStringIndentBlankLineFirstLineNotIndentWeird ( ) throws {
771771 let rawString = """
772772
773773
@@ -784,24 +784,24 @@ class LexerTests : XCTestCase {
784784 XCTAssertEqual ( cleanedString, " TopLevel { \n indented \n alsoIndented \n } " )
785785 }
786786
787- func testBlockStringIndentationMultilineWithSingleSpaceIndent ( ) throws {
787+ func testBlockStringIndentMultilineWithSingleSpaceIndent ( ) throws {
788788 let rawString = " Multi-line string \n With Inner \" foo \" \n should be Valid "
789789 let cleanedString = blockStringValue ( rawValue: rawString)
790790
791791 XCTAssertEqual ( cleanedString, " Multi-line string \n With Inner \" foo \" \n should be Valid " )
792792 }
793793
794- func testBlockStringIndentationMultilineWithSingleSpaceIndentAllLines ( ) throws {
794+ func testBlockStringIndentMultilineWithSingleSpaceIndentExtraLines ( ) throws {
795795 let rawString = " \n Multi-line string \n With Inner \" foo \" \n should be Valid \n "
796796 let cleanedString = blockStringValue ( rawValue: rawString)
797797
798798 XCTAssertEqual ( cleanedString, " Multi-line string \n With Inner \" foo \" \n should be Valid " )
799799 }
800800
801801
802- // Lexer tests for multi-line string token parsing
802+ // Lexer tests for Blockstring token parsing
803803
804- func testMultiLineStrings ( ) throws {
804+ func testBlockStrings ( ) throws {
805805 let token = try lexOne ( #" """ Multi-line string\n With Inner "foo" \nshould be Valid """ "# )
806806 let expected = Token (
807807 kind: . blockstring,
@@ -815,7 +815,7 @@ class LexerTests : XCTestCase {
815815 XCTAssertEqual ( token, expected, " \n expected: \n \( dump ( expected) ) \n \n got: \n \( dump ( token) ) \n " )
816816 }
817817
818- func testMultiLineStringsSingleSpaceIndent ( ) throws {
818+ func testBlockStringSingleSpaceIndent ( ) throws {
819819 let token = try lexOne ( #"""
820820 """
821821 Multi-line string
@@ -835,7 +835,7 @@ class LexerTests : XCTestCase {
835835 XCTAssertEqual ( token, expected, " \n expected: \n \( dump ( expected) ) \n \n got: \n \( dump ( token) ) \n " )
836836 }
837837
838- func testMultiLineStringsUnescapedReturns ( ) throws {
838+ func testBlockStringUnescapedReturns ( ) throws {
839839 let token = try lexOne ( #"""
840840 """
841841 Multi-line string
@@ -856,7 +856,7 @@ class LexerTests : XCTestCase {
856856 XCTAssertEqual ( token, expected, " expected: \n \( dump ( expected) ) \n got: \n \( dump ( token) ) \n " )
857857 }
858858
859- func testMultiLineStringsUnescapedReturnsIndentationTest ( ) throws {
859+ func testBlockStringUnescapedReturnsIndentTest ( ) throws {
860860 let token = try lexOne ( #"""
861861 """
862862 Multi-line string {
@@ -878,7 +878,7 @@ class LexerTests : XCTestCase {
878878 XCTAssertEqual ( token, expected, " expected: \n \( dump ( expected) ) \n got: \n \( dump ( token) ) \n " )
879879 }
880880
881- func testMultilineStrings_stringIndentedInStream ( ) throws {
881+ func testIndentedBlockStringWithIndents ( ) throws {
882882 let sourceStr =
883883 #"""
884884 """
@@ -914,13 +914,13 @@ class LexerTests : XCTestCase {
914914 XCTAssertEqual ( token, expected, " \n \( dump ( expected) ) \n \( dump ( token) ) \n " )
915915 }
916916
917- func testEmptySimpleMultilineBlockQuote ( ) throws {
917+ func testEmptySimpleBlockString ( ) throws {
918918 let token = try lexOne ( #" """""" "# )
919919 let expected = Token ( kind: . blockstring, start: 1 , end: 7 , line: 1 , column: 2 , value: " " )
920920 XCTAssertEqual ( token, expected, " \n \( dump ( expected) ) \n \( dump ( token) ) \n " )
921921 }
922922
923- func testEmptyTrimmedCharactersMultilineBlockQuote ( ) throws {
923+ func testEmptyTrimmedCharactersBlockString ( ) throws {
924924 let token = try lexOne ( #"""
925925 """
926926 """
@@ -930,7 +930,7 @@ class LexerTests : XCTestCase {
930930 }
931931
932932
933- func testEscapedTripleQuote ( ) throws {
933+ func testEscapedTripleQuoteInBlockString ( ) throws {
934934 let token = try lexOne ( #"""
935935 """
936936 \"""
0 commit comments