pharo: Add a test case for ?: syntax of the macro expansion
This commit is contained in:
parent
147307900d
commit
c9033c0aa0
|
@ -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'.
|
||||
|
|
Reference in New Issue