[squeak-dev] FFI: FFI-Tests-mt.54.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Aug 6 16:32:22 UTC 2021


Marcel Taeumel uploaded a new version of FFI-Tests to project FFI:
http://source.squeak.org/FFI/FFI-Tests-mt.54.mcz

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

Name: FFI-Tests-mt.54
Author: mt
Time: 6 August 2021, 6:32:21.197096 pm
UUID: 64071019-20fc-5546-bd0a-16b0b514ee5d
Ancestors: FFI-Tests-mt.53

Refactor latest test about #zeroMemory to make use of the typed interface and to use external memory when invoked from FFIAllocateExternalTests.

Needs FFI-Kernel-mt.188.

=============== Diff against FFI-Tests-mt.53 ===============

Item was changed:
  ----- Method: FFIAllocateTests>>test05ZeroMemory (in category 'tests') -----
  test05ZeroMemory
  
  	1 to: 32 do: [:numBytes |
  		| array |
+ 		array := self allocate: ExternalType byte size: numBytes.
+ 		array atAllPut: 1.
- 		array := ByteArray new: numBytes withAll: 1.
  		self deny: (array allSatisfy: [:byte | byte = 0]).
+ 		array zeroMemory.
- 		array zeroMemory: numBytes.
  		self assert: (array allSatisfy: [:byte | byte = 0])].!



More information about the Squeak-dev mailing list