Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54412 - in /trunk/core/libycp: src/YCPBuiltinList.cc testsuite/tests/builtin/Builtin-List.err
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Wed, 07 Jan 2009 11:14:29 -0000
  • Message-id: <E1LKWMn-0004fb-HV@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Wed Jan 7 12:14:29 2009
New Revision: 54412

URL: http://svn.opensuse.org/viewcvs/yast?rev=54412&view=rev
Log:
- don't log empty list (it always looks the same)
- fixed example

Modified:
trunk/core/libycp/src/YCPBuiltinList.cc
trunk/core/libycp/testsuite/tests/builtin/Builtin-List.err

Modified: trunk/core/libycp/src/YCPBuiltinList.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPBuiltinList.cc?rev=54412&r1=54411&r2=54412&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPBuiltinList.cc (original)
+++ trunk/core/libycp/src/YCPBuiltinList.cc Wed Jan 7 12:14:29 2009
@@ -1139,7 +1139,7 @@
* the list must not be empty.
*
* @usage list::reduce (integer x, integer y, [2, 4, 6], { return x < y ?
x : y; }) -> 2
- * @usage list::reduce (integer x, integer y, [2, 4, 6], { return x < y ?
x : y; }) -> 6
+ * @usage list::reduce (integer x, integer y, [2, 4, 6], { return x > y ?
x : y; }) -> 6
*/

if (list.isNull())
@@ -1149,7 +1149,7 @@

if (list->size() < 1)
{
- ycp2error("Empty list %s for 'reduce'", list->toString().c_str());
+ ycp2error("Empty list for 'reduce'");
return YCPNull();
}


Modified: trunk/core/libycp/testsuite/tests/builtin/Builtin-List.err
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/testsuite/tests/builtin/Builtin-List.err?rev=54412&r1=54411&r2=54412&view=diff
==============================================================================
--- trunk/core/libycp/testsuite/tests/builtin/Builtin-List.err (original)
+++ trunk/core/libycp/testsuite/tests/builtin/Builtin-List.err Wed Jan 7
12:14:29 2009
@@ -141,7 +141,7 @@
----------------------------------------------------------------------
list::reduce (integer x, integer y, [], { return (x + y); })
----------------------------------------------------------------------
-[Interpreter] tests/builtin/Builtin-List.ycp:73 Empty list [] for 'reduce'
+[Interpreter] tests/builtin/Builtin-List.ycp:73 Empty list for 'reduce'
Parsed:
----------------------------------------------------------------------
list::reduce (integer x, integer y, 0, [], { return (x + y); })
@@ -158,7 +158,7 @@
----------------------------------------------------------------------
list::reduce (integer x, integer y, [], { return (x * y); })
----------------------------------------------------------------------
-[Interpreter] tests/builtin/Builtin-List.ycp:78 Empty list [] for 'reduce'
+[Interpreter] tests/builtin/Builtin-List.ycp:78 Empty list for 'reduce'
Parsed:
----------------------------------------------------------------------
list::reduce (integer x, integer y, 1, [], { return (x * y); })

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages