test_regex_check.nit: use the shorter `join`
authorJean Privat <jean@pryen.org>
Mon, 22 Feb 2016 13:51:49 +0000 (08:51 -0500)
committerJean Privat <jean@pryen.org>
Mon, 22 Feb 2016 13:51:49 +0000 (08:51 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/test_regex_check.nit

index 3bd703a..a1f84a8 100644 (file)
@@ -33,7 +33,7 @@ str = "résonnance réseau résultat"
 print str.search_all("rés".to_re).join(", ")
 
 str = "あついあのあほ"
-print str.split("あ(の)?".to_re).join("")
+print str.split("あ(の)?".to_re).join
 
 for i in str.search_all("あ(の)?".to_re) do
        print "Match found : {i}"