We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47696c commit f710ee4Copy full SHA for f710ee4
2 files changed
src/GToolkit-GemStone-Pharo/GtGemStoneSession.class.st
@@ -1377,6 +1377,16 @@ GtGemStoneSession >> gtViewTranscriptFor: aView [
1377
spawnObject: self remoteTranscript ]
1378
]
1379
1380
+{ #category : #testing }
1381
+GtGemStoneSession >> hasFeatureNamed: aSymbol [
1382
+ "Answer a boolean indicating whether the server has the named feature"
1383
+
1384
+ ^ self currentFeatures updateFeatures remoteFeatures
1385
+ detect: [ :aFeature | aFeature featureId = aSymbol ]
1386
+ ifFound: [ :feature | true ]
1387
+ ifNone: [ false ].
1388
+]
1389
1390
{ #category : #testing }
1391
GtGemStoneSession >> hasKeepAlive [
1392
src/GToolkit-RemoteExamples-GemStone/GtRemoteGemStoneWireEncodingExamples.class.st
@@ -187,6 +187,28 @@ GtRemoteGemStoneWireEncodingExamples >> passAndRetrieveClass [
187
self assert: result fifth identicalTo: Dictionary.
188
189
190
+{ #category : #examples }
191
+GtRemoteGemStoneWireEncodingExamples >> passAndRetrieveFloat [
192
+ "Ensure that a floating point number is correctly passed each way.
193
+ For GT / Pharo 13 and GemStone 3.7.5 GtWireFloatPrintStringEncoder matches exactly."
194
+ <gtExample>
195
+ <return: #AssertionFailure>
196
+ | session result |
197
198
+ session := self runningServer.
199
200
+ (session hasFeatureNamed: #floatStringEncoding) ifFalse: [ ^ self ].
201
202
+ result := session evaluateBlockAndWait: [ :in |
203
+ in = Float pi ifFalse:
204
+ [ nil error: 'in=', in asString ].
205
+ Float pi ]
206
+ withArguments: { Float pi }
207
+ serializationStrategy: GtRsrWireSerializationStrategy.
208
209
+ self assert: result equals: Float pi.
210
211
212
{ #category : #examples }
213
GtRemoteGemStoneWireEncodingExamples >> passAndRetrieveGeneralObject [
214
<gtExample>
0 commit comments