The Trunk: SUnit-nice.124.mcz

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

The Trunk: SUnit-nice.124.mcz

commits-2
Nicolas Cellier uploaded a new version of SUnit to project The Trunk:
http://source.squeak.org/trunk/SUnit-nice.124.mcz

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

Name: SUnit-nice.124
Author: nice
Time: 11 February 2021, 9:14:06.179764 am
UUID: f1c47b72-13f3-4690-86c9-b76f3cae6e04
Ancestors: SUnit-pre.123

Use lines rather than subStrings: {Character cr}

This is what lines is made for;
it is fast and also work whatever CRLF zoo.

=============== Diff against SUnit-pre.123 ===============

Item was changed:
  ----- Method: SUnitExtensionsTest>>testAutoAssertFalse (in category 'tests') -----
  testAutoAssertFalse
  | booleanCondition |
  self assert: self isLogging.
  self should: [ self assert: 1 = 2 description: 'self assert: 1 = 2' ] raise: TestResult failure.
+ booleanCondition := (self stream contents lines) last = 'self assert: 1 = 2'.
- booleanCondition := (self stream contents subStrings: {Character cr}) last = 'self assert: 1 = 2'.
  self assert: booleanCondition!

Item was changed:
  ----- Method: SUnitExtensionsTest>>testAutoDenyFalse (in category 'tests') -----
  testAutoDenyFalse
  | booleanCondition |
  self assert: self isLogging.
  self should: [ self deny: 1 = 1 description: 'self deny: 1 = 1'.] raise: TestResult failure.
+ booleanCondition := (self stream contents lines) last = 'self deny: 1 = 1'.
- booleanCondition := (self stream contents subStrings:  {Character cr}) last = 'self deny: 1 = 1'.
  self assert: booleanCondition!