smalltalk
/
osmo-st-core
Archived
1
0
Fork 0

pharo: Add a test case for ?: syntax of the macro expansion

This commit is contained in:
Holger Hans Peter Freyther 2013-02-23 11:41:20 +01:00
parent 147307900d
commit c9033c0aa0
1 changed files with 9 additions and 0 deletions

View File

@ -23,6 +23,15 @@ TestCase subclass: StringFormatTest [
self assert: str = 'Bla Bla 10'.
]
testExpandMacrosTrue [
| str |
str := 'Should be true=<1?true:false>' expandMacrosWith: true.
self assert: str = 'Should be true=true'.
str := 'Should be false=<1?tue:false>' expandMacrosWith: false.
self assert: str = 'Should be false=false'.
]
testExpandMacros2 [
| str |
str := 'Bla Bla <1p> <2s>' expandMacrosWith: 10 with: '20'.