The Trunk: MultilingualTests-ul.22.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: MultilingualTests-ul.22.mcz

commits-2
Levente Uzonyi uploaded a new version of MultilingualTests to project The Trunk:
http://source.squeak.org/trunk/MultilingualTests-ul.22.mcz

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

Name: MultilingualTests-ul.22
Author: ul
Time: 27 February 2017, 2:23:05.817077 am
UUID: 156e1f67-293a-4e28-aa19-d6b47c66f543
Ancestors: MultilingualTests-pre.21

- added a few lines to help debugging the failing cases in #testLineEndConversion

=============== Diff against MultilingualTests-pre.21 ===============

Item was changed:
  ----- Method: MultiByteFileStreamTest>>testLineEndConversion (in category 'testing') -----
  testLineEndConversion
 
  | failures |
  fileName := 'foolinendconversion.txt'.
  failures := OrderedCollection new.
  TextConverter allSubclassesDo: [ :textConverterClass |
  textConverterClass encodingNames ifNotEmpty: [
  #(cr lf crlf) do: [ :lineEndConvention |
  self
  testLineEndConvention: lineEndConvention
  withConverter: textConverterClass
  ifFail: [ :expectedResult :result |
  failures add: {
  textConverterClass.
  lineEndConvention.
  expectedResult.
  result } ] ] ] ].
+ self assert: failures isEmpty.
+ "The code below is here to help you see why those cases fail"
+ failures do: [ :failure |
+ self
+ testLineEndConvention: failure second
+ withConverter: failure first
+ ifFail: [ :expectedResult :result | self halt ] ]!
- self assert: failures isEmpty!