develooper Front page | perl.cvs.parrot | Postings from January 2009

[svn:parrot] r35015 - trunk/languages/lua/t

From:
fperrad
Date:
January 6, 2009 00:58
Subject:
[svn:parrot] r35015 - trunk/languages/lua/t
Message ID:
20090106085840.74DE6CB9F9@x12.develooper.com
Author: fperrad
Date: Tue Jan  6 00:58:38 2009
New Revision: 35015

Modified:
   trunk/languages/lua/t/forlist.t

Log:
[Lua]
- fix test : now, hash seed is randomized

Modified: trunk/languages/lua/t/forlist.t
==============================================================================
--- trunk/languages/lua/t/forlist.t	(original)
+++ trunk/languages/lua/t/forlist.t	Tue Jan  6 00:58:38 2009
@@ -60,15 +60,14 @@
 3
 OUT
 
-language_output_is( 'lua', <<'CODE', <<'OUT', 'for pairs (hash)' );
+language_output_like( 'lua', <<'CODE', <<'OUT', 'for pairs (hash)' );
 t = {a=10, b=100}
 
 for k in pairs(t) do
     print(k)
 end
 CODE
-a
-b
+/^(a\nb|b\na)$/
 OUT
 
 language_output_is( 'lua', <<'CODE', <<'OUT', 'for break' );



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About