diff --git a/test/test-engines.rb b/test/test-engines.rb index 8f0705a..a183231 100644 --- a/test/test-engines.rb +++ b/test/test-engines.rb @@ -71,7 +71,8 @@ def _test() - name: ruby2_options lang: ruby class: Eruby - options: { :bufvar: '@_out_buf' } + options: + :bufvar: '@_out_buf' input: | <% for item in @items %> @@ -137,7 +138,9 @@ def _test() - name: c1 lang: c class: Ec - options: { :filename: foo.html, :indent: ' ' } + options: + :filename: foo.html + :indent: ' ' input: |4
@@ -167,7 +170,9 @@ def _test() - name: cpp1 lang: cpp class: Ecpp - options: { :filename: foo.html, :indent: ' ' } + options: + :filename: foo.html + :indent: ' ' input: |4
@@ -197,7 +202,10 @@ def _test() - name: java1 lang: java class: Ejava - options: { :buf: _buf, :bufclass: StringBuilder, :indent: ' ' } + options: + :buf: _buf, + :bufclass: StringBuilder + :indent: ' ' input: |
@@ -220,19 +228,19 @@ def _test() expected: |4 StringBuilder _buf = new StringBuilder(); _buf.append("
\n" + " \n"); - + int i = 0; for (Iterator it = list.iterator(); it.hasNext(); ) { String s = (String)it.next(); i++; - + _buf.append(" \n" + " \n" + " \n" + " \n"); - + } - + _buf.append(" \n" + "
"); _buf.append(i); _buf.append(""); _buf.append(escape(s)); _buf.append("
\n"); System.err.println("*** debug: i="+(i)); _buf.append("\n"); @@ -242,7 +250,7 @@ def _test() lang: scheme class: Escheme options: - input: &scheme1_input| + input: &scheme1_input | <% (let ((i 0)) %> @@ -290,7 +298,8 @@ def _test() - name: scheme2 lang: scheme class: Escheme - options: { :func: 'display' } + options: + :func: 'display' input: *scheme1_input expected: |4 (let ((i 0)) @@ -401,7 +410,8 @@ def _test() - name: javascript2 lang: javascript class: Ejavascript - options: { :docwrite: false } + options: + :docwrite: false input: *javascript_input expected: |4 var _buf = []; diff --git a/test/test-enhancers.rb b/test/test-enhancers.rb index 3b46721..0ad9f65 100644 --- a/test/test-enhancers.rb +++ b/test/test-enhancers.rb @@ -106,13 +106,13 @@ def _test() ## - name: basic1 class: Eruby - input: &basic1_input| + input: &basic1_input | - src: &basic1_src| + src: &basic1_src | _buf = ''; _buf << ' '; _buf.to_s - output: &basic1_output| + output: &basic1_output |
! for item in list diff --git a/test/test-erubis.rb b/test/test-erubis.rb index ad00e5e..89e94f7 100644 --- a/test/test-erubis.rb +++ b/test/test-erubis.rb @@ -220,13 +220,13 @@ def test_evaluate_creates_proc __END__ - name: basic1 - input: &basic1_input| + input: &basic1_input | - src: &basic1_src| + src: &basic1_src | _buf = ''; _buf << ' '; _buf.to_s - output: &basic1_output| + output: &basic1_output |
<% for item in list %> @@ -677,7 +680,7 @@ def test_evaluate_creates_proc - name: optimized4 desc: single quotation and backslash class: OptimizedEruby - input: &optimized4_input| + input: &optimized4_input | a = "'" b = "\"" c = '\'' @@ -751,14 +754,14 @@ def test_evaluate_creates_proc - name: pi1 class: PI::Eruby testopt: evaluate - input: &input_pi1| + input: &input_pi1 | - src: &src_pi1| + src: &src_pi1 | _buf = ''; _buf << ' '; _buf.to_s - output: &output_pi1| + output: &output_pi1 |