[squeak-dev] The Trunk: Tests-eem.172.mcz

commits at source.squeak.org commits at source.squeak.org
Mon Oct 8 20:46:06 UTC 2012


Eliot Miranda uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-eem.172.mcz

==================== Summary ====================

Name: Tests-eem.172
Author: eem
Time: 8 October 2012, 1:45:45.552 pm
UUID: e455c2ad-cdd0-4324-9c32-5827517176db
Ancestors: Tests-ul.171

Test more accurate error reporting for incomplete brace expressions (Compiler-eem.234).

=============== Diff against Tests-ul.171 ===============

Item was changed:
  ----- Method: CompilerNotifyingTest>>testAlltogether (in category 'testing') -----
  testAlltogether
  	"Initialize for all known error conditions.
  	Note that the chunk to be evaluated are separated by %, and expected errors enclosed in back quotes."
  	
  	self setUpForErrorsIn: '  "First, the senders of #offEnd:"
  #` Unmatched bracket ->`[ 1 2 %
  #[ 1 2 ` 8-bit integer or right bracket expected ->`256 4]%
  $` A Character was expected ->`%
  1+2   ` Unmatched comment quote ->`"unfinished comment%
  #` Unmatched parenthesis ->`( 1 2%
  #` Unmatched parenthesis ->`( 1 2 %
  ^nil printString ,  ` Unmatched string quote ->`''unfinished string%
  	"Then, the senders of #expected:"
  2r` a digit between 0 and 1 expected ->`3%
  | x | x := ` Expression expected ->`%
  [ :x : ` Argument name expected ->`1]%
  [ :x ` Vertical bar expected ->`x + 1 ]%
  [:x | 1 ` Period or right bracket expected ->`( 1 ) ]%
  { 1. 2` Period or right brace expected ->`%
  { 1. 2 ` Period or right brace expected ->`%
  { 1. 2 ` Period or right brace expected ->`3 %
+ { 1. 2. ` Variable or expression or right brace expected ->`| x | %
- { 1. 2. ` Variable or expression expected ->`| x | %
  super yourself` Cascading not expected ->`; yourself%
  nil yourself; ` Cascade expected ->`^ 2%
  	"#externalFunctionDeclaration is skipped, this cannot be evaluated"
  1 to: ` Argument expected ->`:=%
  1 +` Argument expected ->`%
  1 + ` Argument expected ->`* 2 + 3%
  1+(2 ` right parenthesis expected ->`.  %
  1 + 2 ` Nothing more expected ->`^nil%
  	"#pattern:inContext: skipped, cannot be evaluated"
  	"#pragmaLiteral: #pragmaSequence #pragmaStatement skipped, cannot be evaluated"
  (  ` expression expected ->`. 2  . )%
  ( 1  ` right parenthesis expected ->`. 2  . )%
  	"#primitive:error: #primitive:module:error: skipped, cannot be evaluated"
  ^ ` Expression to return expected ->`. 1 + 2%
  [ ^1 ` End of block expected ->`2]%
  | x y ` Vertical bar expected ->`%
  [:z | | x y ` Vertical bar expected ->`]%
  1` an integer greater than 1 as valid radix expected ->`r0'.
  	self enumerateAllSelections!

Item was changed:
  ----- Method: CompilerNotifyingTest>>testExpectedExpressionInBraceArray (in category 'testing') -----
  testExpectedExpressionInBraceArray
  	self setUpForErrorsIn: '{ 1. 2 ` Period or right brace expected ->`3 }'.
  	self enumerateAllSelections.
+ 	self setUpForErrorsIn: '{ 1. 2. ` Variable or expression or right brace expected ->`| x | x}'.
- 	self setUpForErrorsIn: '{ 1. 2. ` Variable or expression expected ->`| x | x}'.
  	self enumerateAllSelections!



More information about the Squeak-dev mailing list