@ -34,19 +34,19 @@ class QuotedTestCase(RuleTestCase):
def test_quote_type_any ( self ) :
def test_quote_type_any ( self ) :
conf = ' quoted-strings: { quote-type: any} \n '
conf = ' quoted-strings: { quote-type: any} \n '
self . check ( ' --- \n '
self . check ( ' --- \n '
' string1: " foo " \n '
' boolean1: true \n '
' number1: 123 \n ' # fails
' number1: 123 \n '
' string2: foo \n ' # fails
' string1: foo \n ' # fails
' string2: " foo " \n '
' string3: \' bar \' \n '
' string3: \' bar \' \n '
' string4: !!str genericstring \n ' # fails
' string4: !!str genericstring \n '
' string5: !!str 456 \n ' # fails
' string5: !!str 456 \n '
' string6: !!str " quotedgenericstring " \n '
' string6: !!str " quotedgenericstring " \n '
' binary: !!binary binstring \n '
' binary: !!binary binstring \n '
' integer: !!int intstring \n '
' integer: !!int intstring \n '
' boolean1: !!bool boolstring \n '
' boolean2: !!bool boolstring \n '
' boolean2: !!bool " quotedboolstring " \n ' ,
' boolean3: !!bool " quotedboolstring " \n ' ,
conf , problem1 = ( 3 , 10 ) , problem2 = ( 4 , 10 ) ,
conf , problem = ( 4 , 10 ) )
problem3 = ( 6 , 16 ) , problem4 = ( 7 , 16 ) )
self . check ( ' --- \n '
self . check ( ' --- \n '
' multiline string 1: | \n '
' multiline string 1: | \n '
' line 1 \n '
' line 1 \n '
@ -65,19 +65,19 @@ class QuotedTestCase(RuleTestCase):
def test_quote_type_single ( self ) :
def test_quote_type_single ( self ) :
conf = ' quoted-strings: { quote-type: single} \n '
conf = ' quoted-strings: { quote-type: single} \n '
self . check ( ' --- \n '
self . check ( ' --- \n '
' string1: " foo " \n ' # fails
' boolean1: true \n '
' number1: 123 \n ' # fails
' number1: 123 \n '
' string2: foo \n ' # fails
' string1: foo \n ' # fails
' string2: " foo " \n ' # fails
' string3: \' bar \' \n '
' string3: \' bar \' \n '
' string4: !!str genericstring \n ' # fails
' string4: !!str genericstring \n '
' string5: !!str 456 \n ' # fails
' string5: !!str 456 \n '
' string6: !!str " quotedgenericstring " \n ' # fails
' string6: !!str " quotedgenericstring " \n '
' binary: !!binary binstring \n '
' binary: !!binary binstring \n '
' integer: !!int intstring \n '
' integer: !!int intstring \n '
' boolean1: !!bool boolstring \n '
' boolean2: !!bool boolstring \n '
' boolean2: !!bool " quotedboolstring " \n ' ,
' boolean3: !!bool " quotedboolstring " \n ' ,
conf , problem1 = ( 2 , 10 ) , problem2 = ( 3 , 10 ) , problem3 = ( 4 , 10 ) ,
conf , problem1 = ( 4 , 10 ) , problem2 = ( 5 , 10 ) )
problem4 = ( 6 , 16 ) , problem5 = ( 7 , 16 ) , problem6 = ( 8 , 16 ) )
self . check ( ' --- \n '
self . check ( ' --- \n '
' multiline string 1: | \n '
' multiline string 1: | \n '
' line 1 \n '
' line 1 \n '
@ -96,19 +96,19 @@ class QuotedTestCase(RuleTestCase):
def test_quote_type_double ( self ) :
def test_quote_type_double ( self ) :
conf = ' quoted-strings: { quote-type: double} \n '
conf = ' quoted-strings: { quote-type: double} \n '
self . check ( ' --- \n '
self . check ( ' --- \n '
' string1: " foo " \n '
' boolean1: true \n '
' number1: 123 \n ' # fails
' number1: 123 \n '
' string2: foo \n ' # fails
' string1: foo \n ' # fails
' string2: " foo " \n '
' string3: \' bar \' \n ' # fails
' string3: \' bar \' \n ' # fails
' string4: !!str genericstring \n ' # fails
' string4: !!str genericstring \n '
' string5: !!str 456 \n ' # fails
' string5: !!str 456 \n '
' string6: !!str " quotedgenericstring " \n '
' string6: !!str " quotedgenericstring " \n '
' binary: !!binary binstring \n '
' binary: !!binary binstring \n '
' integer: !!int intstring \n '
' integer: !!int intstring \n '
' boolean1: !!bool boolstring \n '
' boolean2: !!bool boolstring \n '
' boolean2: !!bool " quotedboolstring " \n ' ,
' boolean3: !!bool " quotedboolstring " \n ' ,
conf , problem1 = ( 3 , 10 ) , problem2 = ( 4 , 10 ) , problem3 = ( 5 , 10 ) ,
conf , problem1 = ( 4 , 10 ) , problem2 = ( 6 , 10 ) )
problem4 = ( 6 , 16 ) , problem5 = ( 7 , 16 ) )
self . check ( ' --- \n '
self . check ( ' --- \n '
' multiline string 1: | \n '
' multiline string 1: | \n '
' line 1 \n '
' line 1 \n '