The Trunk: TraitsTests-mt.21.mcz

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

The Trunk: TraitsTests-mt.21.mcz

commits-2
Marcel Taeumel uploaded a new version of TraitsTests to project The Trunk:
http://source.squeak.org/trunk/TraitsTests-mt.21.mcz

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

Name: TraitsTests-mt.21
Author: mt
Time: 2 September 2019, 6:16:52.04089 pm
UUID: 4cf604e6-f6b1-bd4a-a2a7-8cdb84295f3b
Ancestors: TraitsTests-mt.20

Uses category name from resources object. Fixes a protocol. Comments a test that gave me the hint for that fix in SUnit-mt.116.

=============== Diff against TraitsTests-mt.20 ===============

Item was changed:
  ----- Method: TraitMethodDescriptionTest>>testArgumentNames (in category 'running') -----
  testArgumentNames
+ "T5 combines both T1 and T2. For conflicting messages, T5 cannot know the correct argument names and thus falls back to a generic form 'arg1', 'arg2', etc."
+
  self t1 compile: 'zork1: myArgument zork2: mySecondArgument ^true'.
  self t2 compile: 'zork1: myArgument zork2: somethingElse ^false'.
+
  self assert: ((self t5 sourceCodeAt: #zork1:zork2:) asString
  beginsWith: 'zork1: arg1 zork2: arg2').
+
  self t1 compile: 'zork1: myArgument zork2: mySecondArgument ^true'.
  self t2 compile: 'zork1: somethingElse zork2: myArgument ^false'.
+
  self assert: ((self t5 sourceCodeAt: #zork1:zork2:) asString
  beginsWith: 'zork1: arg1 zork2: arg2')!

Item was changed:
  ----- Method: TraitsTestCase>>categoryName (in category 'running') -----
  categoryName
+
+ ^ TraitsResource current categoryName!
- ^self class category!

Item was changed:
+ ----- Method: TraitsTestCase>>setUp (in category 'running') -----
- ----- Method: TraitsTestCase>>setUp (in category 'accessing') -----
  setUp
 
  super setUp.
  self timeout: 90. "pre: This is necessary to account for the TraitsResrouce setup"
  !