[squeak-dev] FFI: FFI-Tests-mt.64.mcz
commits at source.squeak.org
commits at source.squeak.org
Thu Aug 19 13:22:49 UTC 2021
Marcel Taeumel uploaded a new version of FFI-Tests to project FFI:
http://source.squeak.org/FFI/FFI-Tests-mt.64.mcz
==================== Summary ====================
Name: FFI-Tests-mt.64
Author: mt
Time: 19 August 2021, 3:22:47.916186 pm
UUID: 0c59b489-4c85-0144-a170-3609e9eb8871
Ancestors: FFI-Tests-mt.63
Complements FFI-Kernel-mt.218
=============== Diff against FFI-Tests-mt.63 ===============
Item was added:
+ ----- Method: FFIAllocateTests>>test06MemoryAtPut (in category 'tests') -----
+ test06MemoryAtPut
+
+ 1 to: 32 do: [:numBytes |
+ | source target |
+ source := self allocate: ExternalType byte size: numBytes.
+ source atAllPut: 1.
+ target := self allocate: source contentType size: source size.
+ self assert: (target allSatisfy: [:byte | byte = 0]).
+ target getHandle
+ memoryAt: 1
+ put: source getHandle
+ length: source byteSize.
+ self assert: (target allSatisfy: [:byte | byte = 1])].!
More information about the Squeak-dev
mailing list
|