[Pkg] FFI: FFI-Tests-mt.29.mcz

commits at source.squeak.org commits at source.squeak.org
Fri May 7 09:54:55 UTC 2021


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

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

Name: FFI-Tests-mt.29
Author: mt
Time: 7 May 2021, 11:54:55.047725 am
UUID: 3e7e1f4d-46de-154b-8c46-5fd1f4fe86bf
Ancestors: FFI-Tests-mt.28

Complements FFI-Kernel-mt.139

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

Item was added:
+ ----- Method: ExternalStructureTests>>test05ReadCString (in category 'tests - external data') -----
+ test05ReadCString
+ 
+ 	| data |
+ 	ExternalData allowDetectForUnknownSizeDuring: [
+ 		data := ExternalData fromHandle: #[65 66 67 0] type: ExternalType char.
+ 		self assert: 'ABC' equals: data fromCString.
+ 		data := ExternalData fromHandle: #[65 66 67 0 68 69 70 0 0] type: ExternalType char.
+ 		self assert:#('ABC' 'DEF') equals: data fromCStrings].!



More information about the Packages mailing list