From d8e333de3bf76100b9aedb2b710df55ffdc54ea7 Mon Sep 17 00:00:00 2001 From: neoeinstein Date: Sat, 12 Apr 2008 01:20:50 +0000 Subject: [PATCH] BOO-835: DSL-friendly method syntax, Let's give it a testcase. git-svn-id: https://svn.codehaus.org/boo/boo/trunk@2923 2c1201b4-01cd-e047-a400-b836ae1fbc61 --- tests/testcases/regression/BOO-835-1.boo | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/testcases/regression/BOO-835-1.boo diff --git a/tests/testcases/regression/BOO-835-1.boo b/tests/testcases/regression/BOO-835-1.boo new file mode 100644 index 00000000..a1c13f9e --- /dev/null +++ b/tests/testcases/regression/BOO-835-1.boo @@ -0,0 +1,28 @@ +""" + + +Hello, world! + + +""" + +callable Block() + +def blockTag(tagName as string, block as Block): + print "<${tagName}>" + block() + print "" + +def html(block as Block): + blockTag "html", block + +def body(block as Block): + blockTag "body", block + +def text(s as string): + print s + +html: + body: + text "Hello, world!" + -- 2.11.4.GIT