Skip to content

Commit

Permalink
Gemstone example runner draft [feenkcom/gtoolkit#4322]
Browse files Browse the repository at this point in the history
  • Loading branch information
hellerve committed Mar 8, 2025
1 parent 67efc17 commit 82d7786
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions src/Gt4Llm-Gemstone/GtLlmChatExamples.extension.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
Extension { #name : 'GtLlmChatExamples' }

{ #category : '*Gt4Llm-Gemstone' }
GtLlmChatExamples >> assert: aBoolean [
self
assert: aBoolean
description: 'assert is not true'
]

{ #category : '*Gt4Llm-Gemstone' }
GtLlmChatExamples >> assert: aBoolean description: aString [
| str |
aBoolean == true ifFalse: [
str := aString .
str _isExecBlock ifTrue:[ str := aString value ].
self logFailure: str.
^ GtGemStoneAssertionFailure signal: str
]
]

{ #category : '*Gt4Llm-Gemstone' }
GtLlmChatExamples >> assert: actual equals: expected [
self
assert: actual = expected
description: actual printString , ' is not equal to ' , expected printString
]

0 comments on commit 82d7786

Please sign in to comment.