From c9033c0aa0cc0efa9edd579f3f20d2dcb2f85909 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 23 Feb 2013 11:41:20 +0100 Subject: [PATCH] pharo: Add a test case for ?: syntax of the macro expansion --- ExtensionTest.st | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ExtensionTest.st b/ExtensionTest.st index 82e5315..1b3f845 100644 --- a/ExtensionTest.st +++ b/ExtensionTest.st @@ -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'.