parsers/smalltalk/tests/PPSmalltalkGrammarTests.st
changeset 417 3c0a91182e65
parent 386 a409905f7f2d
child 421 7e08b31e0dae
equal deleted inserted replaced
416:b0fd54ee0412 417:3c0a91182e65
   108 
   108 
   109 testComment5
   109 testComment5
   110 	self 
   110 	self 
   111 		parse: '1"one"	"two"+2'
   111 		parse: '1"one"	"two"+2'
   112 		rule: #expression
   112 		rule: #expression
       
   113 !
       
   114 
       
   115 testComment6a
       
   116         "Tests Smalltalk/X EOL comments"
       
   117         self 
       
   118                 parse: '1+2"/ xxxxx'
       
   119                 rule: #expression.
       
   120 
       
   121     "Created: / 07-11-2014 / 01:50:55 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   122 !
       
   123 
       
   124 testComment6b
       
   125         "Tests Smalltalk/X EOL comments"
       
   126         self 
       
   127                 parse: '1"/ xxxxx
       
   128                         +2 "/yyyy'
       
   129                 rule: #expression.
       
   130 
       
   131     "Created: / 07-11-2014 / 01:50:59 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   132 !
       
   133 
       
   134 testComment6c
       
   135         "Tests Smalltalk/X EOL comments"
       
   136         self 
       
   137                 parse: ('1"/ xxxxx', (Character codePoint: 13) asString, ' + 1')
       
   138                 rule: #expression.
       
   139 
       
   140     "Created: / 07-11-2014 / 01:51:02 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   141 !
       
   142 
       
   143 testComment6d
       
   144         "Tests Smalltalk/X EOL comments"
       
   145         self 
       
   146                 parse: ('1"/ xxxxx', (Character codePoint: 10) asString, ' + 1')
       
   147                 rule: #expression.
       
   148 
       
   149     "Created: / 07-11-2014 / 01:51:04 / Jan Vrany <jan.vrany@fit.cvut.cz>"
       
   150 !
       
   151 
       
   152 testComment6e
       
   153         "Tests Smalltalk/X EOL comments"
       
   154         self 
       
   155                 parse: ('1"/ xxxxx', (Character codePoint: 13) asString, (Character codePoint: 10) asString, ' + 1')
       
   156                 rule: #expression.
       
   157 
       
   158     "Created: / 07-11-2014 / 01:51:07 / Jan Vrany <jan.vrany@fit.cvut.cz>"
   113 !
   159 !
   114 
   160 
   115 testCompleteness
   161 testCompleteness
   116 	"This test asserts that all subclasses override all test methods."
   162 	"This test asserts that all subclasses override all test methods."
   117 	
   163