Author: kkaempf Date: Tue Jul 17 17:56:59 2007 New Revision: 39481 URL: http://svn.opensuse.org/viewcvs/yast?rev=39481&view=rev Log: add if4.rb, add blank after 'if' Modified: trunk/yxmlconv/tests/if.rb Modified: trunk/yxmlconv/tests/if.rb URL: http://svn.opensuse.org/viewcvs/yast/trunk/yxmlconv/tests/if.rb?rev=39481&r1=39480&r2=39481&view=diff ============================================================================== --- trunk/yxmlconv/tests/if.rb (original) +++ trunk/yxmlconv/tests/if.rb Tue Jul 17 17:56:59 2007 @@ -10,7 +10,7 @@ def test_if result = converter_test( "if.xml" ) expected = [ -'if( true ) then', +'if ( true ) then', ' return false', 'end' ] i = 0 @@ -22,7 +22,7 @@ def test_if1 result = converter_test( "if1.xml" ) expected = [ -'if( true ) then', +'if ( true ) then', ' return false', 'else', ' return true', @@ -36,7 +36,7 @@ def test_if2 result = converter_test( "if2.xml" ) expected = [ -'if( true ) then', +'if ( true ) then', ' return false', 'else', ' return true', @@ -50,16 +50,16 @@ def test_if3 result = converter_test( "if3.xml" ) expected = [ -'if( 0 == 1 ) then', +'if ( 0 == 1 ) then', ' return 1', 'else', -' if( 0 == 2 ) then', +' if ( 0 == 2 ) then', ' return 2', ' else', -' if( 0 == 3 ) then', +' if ( 0 == 3 ) then', ' return 3', ' else', -' if( 0 == 4 ) then', +' if ( 0 == 4 ) then', ' return 4', ' else', ' return 0', @@ -73,4 +73,17 @@ i += 1 } end + def test_if + result = converter_test( "if4.xml" ) + expected = [ +'if ( true )', +'else', +' return false', +'end' ] + i = 0 + result.split("\n").each{ |l| + assert l == expected[i] + i += 1 + } + end end -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org