[yast-commit] r67450 - /trunk/ruby-bindings/tests/ycp/ruby_from_ycp.ycp
Author: jreidinger Date: Wed Feb 15 16:25:00 2012 New Revision: 67450 URL: http://svn.opensuse.org/viewcvs/yast?rev=67450&view=rev Log: improve test to get better result Modified: trunk/ruby-bindings/tests/ycp/ruby_from_ycp.ycp Modified: trunk/ruby-bindings/tests/ycp/ruby_from_ycp.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/tests/ycp/ruby_from_ycp.ycp?rev=67450&r1=67449&r2=67450&view=diff ============================================================================== --- trunk/ruby-bindings/tests/ycp/ruby_from_ycp.ycp (original) +++ trunk/ruby-bindings/tests/ycp/ruby_from_ycp.ycp Wed Feb 15 16:25:00 2012 @@ -3,14 +3,15 @@ import "InRuby"; string result = tostring(InRuby::multiply_by_eight(10)); y2milestone("result: %1", result); - if (InRuby::raising_code()==nil) + result = tostring(InRuby::raising_code()); + if (result==nil) { - string result = tostring(InRuby::last_exception()); + result = tostring(InRuby::last_exception()); y2milestone("result: %1", result); } else { - y2error("exception completely ignored"); + y2error("exception completely ignored result: %1",result); } import "CamelCase"; result = tostring(CamelCase::inc(10)); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jreidinger@svn2.opensuse.org