[squeak-dev] The Trunk: CollectionsTests-mt.299.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jan 25 08:14:59 UTC 2019


Marcel Taeumel uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-mt.299.mcz

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

Name: CollectionsTests-mt.299
Author: mt
Time: 25 January 2019, 9:15:00.435997 am
UUID: 8ca1214a-4ba0-b94b-b27d-a26311064015
Ancestors: CollectionsTests-cbc.296, CollectionsTests-JH.298

Merges CollectionsTests-JH.298

=============== Diff against CollectionsTests-cbc.296 ===============

Item was added:
+ ----- Method: FloatArrayTest>>testVectorOperations (in category 'testing') -----
+ testVectorOperations
+ 	
+ 	"Test primtive cases 'receiver size = argument size'."
+ 	self assert: (FloatArray withAll: {2.0. 2.0}) equals: (FloatArray withAll: {4.0. 6.0}) / (FloatArray withAll: {2.0. 3.0}).
+ 	self assert: (FloatArray withAll: {8.0. 9.0}) equals: (FloatArray withAll: {4.0. 4.5}) * (FloatArray withAll: {2.0. 2.0}).
+ 	self assert: (FloatArray withAll: {6.0. 9.0}) equals: (FloatArray withAll: {4.0. 6.0}) + (FloatArray withAll: {2.0. 3.0}).
+ 	self assert: (FloatArray withAll: {2.0. 3.0}) equals: (FloatArray withAll: {4.0. 6.0}) - (FloatArray withAll: {2.0. 3.0}).
+ 	self assert: 26 equals: ((FloatArray withAll: {4.0. 6.0}) dot: (FloatArray withAll: {2.0. 3.0})).
+ 	
+ 	"Test corner cases where 'receiver size < argument size'."
+ 	self should: [(FloatArray withAll: {4.0. 6.0}) / (FloatArray withAll: {2.0. 3.0. 42.0})] raise: Error.
+ 	self should: [(FloatArray withAll: {4.0. 6.0}) * (FloatArray withAll: {2.0. 3.0. 42.0})] raise: Error.
+ 	self should: [(FloatArray withAll: {4.0. 6.0}) + (FloatArray withAll: {2.0. 3.0. 42.0})] raise: Error.
+ 	self should: [(FloatArray withAll: {4.0. 6.0}) - (FloatArray withAll: {2.0. 3.0. 42.0})] raise: Error.
+ 	self should: [(FloatArray withAll: {4.0. 6.0}) dot: (FloatArray withAll: {2.0. 3.0. 42.0})] raise: Error.
+ 	
+ 	"Test corner cases where 'receiver size > argument size'."
+ 	self should: [(FloatArray withAll: {4.0. 6.0. 42.0}) / (FloatArray withAll: {2.0. 3.0})] raise: Error.
+ 	self should: [(FloatArray withAll: {4.0. 6.0. 42.0}) * (FloatArray withAll: {2.0. 3.0})] raise: Error.
+ 	self should: [(FloatArray withAll: {4.0. 6.0. 42.0}) + (FloatArray withAll: {2.0. 3.0})] raise: Error.
+ 	self should: [(FloatArray withAll: {4.0. 6.0. 42.0}) - (FloatArray withAll: {2.0. 3.0})] raise: Error.
+ 	self should: [(FloatArray withAll: {4.0. 6.0. 42.0}) dot: (FloatArray withAll: {2.0. 3.0})] raise: Error.
+ 
+ 
+ 
+ !



More information about the Squeak-dev mailing list