nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c3ec824
)
test_regex_check.nit: use the shorter `join`
author
Jean Privat
<jean@pryen.org>
Mon, 22 Feb 2016 13:51:49 +0000
(08:51 -0500)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/tests/test_regex_check.nit
b/tests/test_regex_check.nit
index
3bd703a
..
a1f84a8
100644
(file)
--- a/
tests/test_regex_check.nit
+++ b/
tests/test_regex_check.nit
@@
-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}"