[squeak-dev] The Trunk: Compiler-nice.83.mcz

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

[squeak-dev] The Trunk: Compiler-nice.83.mcz

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

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

Name: Compiler-nice.83
Author: nice
Time: 12 September 2009, 9:25:13 am
UUID: 421fd985-67d3-4991-9bcf-e7abae734f34
Ancestors: Compiler-nice.82

Add the test for bug http://bugs.squeak.org/view.php?id=6797
self deny: (0.5s1 scale = 0.50s2 scale).

=============== Diff against Compiler-nice.82 ===============

Item was added:
+ ----- Method: CompilerTest>>testScaledDecimalLiterals (in category 'literals') -----
+ testScaledDecimalLiterals
+ "Equal ScaledDecimal with different scales should use different slots
+ This is related to http://bugs.squeak.org/view.php?id=6797"
+
+ "This correctly works when evaluated separately"
+ self deny: (Compiler evaluate: '0.5s1') scale = (Compiler evaluate: '0.5s2') scale.
+
+ "But not when evaluated together if literal reduction is too agressive"
+ self deny: (Compiler evaluate: '0.5s1 scale =  0.5s2 scale').!

Item was added:
+ TestCase subclass: #CompilerTest
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'Compiler-Tests'!
+
+ !CompilerTest commentStamp: 'nice 12/3/2007 22:15' prior: 0!
+ CompilerTest is a holder for SUnit test of Compiler!