r46050 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r46049‎ | r46050 | r46051 >
Date:00:45, 23 January 2009
Author:werdna
Status:deferred
Tags:
Comment:
Re-add tests. I don't know why they disappeared.
Modified paths:
  • /branches/change-tagging/extensions/AbuseFilter/tests (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/arith.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/cast.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/cast.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/ccnorm.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/ccnorm.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/comment.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/comment.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/count.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/count.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/eq.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/eq.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/float.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/float.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/ifthen.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/ifthen.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/in.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/in.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/lcase.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/lcase.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/length.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/length.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/like.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/like.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/norm.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/norm.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/numbers.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/numbers.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/ord.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/ord.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/prec.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/prec.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/regex.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/regex.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/rmdoubles.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/rmdoubles.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/rmspecials.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/rmspecials.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/specialratio.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/specialratio.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/string.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/string.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/tern.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/tern.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/utf8.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/utf8.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/whitespace.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/whitespace.t (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/whitespace1.r (added) (history)
  • /branches/change-tagging/extensions/AbuseFilter/tests/whitespace1.t (added) (history)

Diff [purge]

Index: branches/change-tagging/extensions/AbuseFilter/tests/cast.t
@@ -0,0 +1 @@
 2+(string(1) === "1") & (int("1") === 1) & (float(1) === 1.0)
Index: branches/change-tagging/extensions/AbuseFilter/tests/rmdoubles.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/whitespace.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/rmdoubles.t
@@ -0,0 +1 @@
 2+rmdoubles("foobarééqq") = "fobaréq"
Index: branches/change-tagging/extensions/AbuseFilter/tests/whitespace.t
@@ -0,0 +1,2 @@
 2+1 == FOO
 3+FOO=1
Index: branches/change-tagging/extensions/AbuseFilter/tests/comment.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/comment.t
@@ -0,0 +1 @@
 2+1 /* a */ == /* b */ "1" /* c */
Index: branches/change-tagging/extensions/AbuseFilter/tests/eq.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/float.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/in.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/string.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/eq.t
@@ -0,0 +1 @@
 2+(1 == 1) & (1 != 2) & (1 === 1) & (1 == "1") & (1 !== "1")
Index: branches/change-tagging/extensions/AbuseFilter/tests/float.t
@@ -0,0 +1 @@
 2+(5 / 2 = 2) & (5. / 2 = 2.5) & (5 / 2. = 2.5) & (int(.5) = 0)
Index: branches/change-tagging/extensions/AbuseFilter/tests/in.t
@@ -0,0 +1 @@
 2+"foo" in "foobar" & "quux" contains "ux"
Index: branches/change-tagging/extensions/AbuseFilter/tests/string.t
@@ -0,0 +1 @@
 2+"\xA3" = "£" & "a\tb" = "a b" & "a\qb" = "aqb"
Index: branches/change-tagging/extensions/AbuseFilter/tests/tern.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/tern.t
@@ -0,0 +1 @@
 2+1 ? 0 ? 3 : 4 : 5 == 4
Index: branches/change-tagging/extensions/AbuseFilter/tests/norm.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/norm.t
@@ -0,0 +1 @@
 2+norm("foo") = "F0" & norm("anyone") = "ANY0NE"
Index: branches/change-tagging/extensions/AbuseFilter/tests/ifthen.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/whitespace1.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/ifthen.t
@@ -0,0 +1 @@
 2+(if 1 then 2 else 3 end) == 2
Index: branches/change-tagging/extensions/AbuseFilter/tests/whitespace1.t
@@ -0,0 +1 @@
 2+1 == length("a")
Index: branches/change-tagging/extensions/AbuseFilter/tests/length.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/length.t
@@ -0,0 +1 @@
 2+length("foobar") == 6
Index: branches/change-tagging/extensions/AbuseFilter/tests/ord.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/like.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/ord.t
@@ -0,0 +1 @@
 2+(1 > 0) & (0 < 1) & (2 >= 2) & (2 <= 2)
Index: branches/change-tagging/extensions/AbuseFilter/tests/like.t
@@ -0,0 +1 @@
 2+"foobér" like "foob?r" & "quux" matches "qu*x"
Index: branches/change-tagging/extensions/AbuseFilter/tests/lcase.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/count.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/prec.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/lcase.t
@@ -0,0 +1 @@
 2+lcase("FÁmí") = "fámí"
Index: branches/change-tagging/extensions/AbuseFilter/tests/count.t
@@ -0,0 +1 @@
 2+count("a,b,c,d") = 4
Index: branches/change-tagging/extensions/AbuseFilter/tests/prec.t
@@ -0,0 +1 @@
 2+(1 + 2 * 3 = 7) & (2 ** 2 * 2 = 8) & (1 - 1 - 1 = -1)
Index: branches/change-tagging/extensions/AbuseFilter/tests/rmspecials.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/rmspecials.t
@@ -0,0 +1 @@
 2+rmspecials("foo;bar!") = "foobar"
Index: branches/change-tagging/extensions/AbuseFilter/tests/arith.t
@@ -0,0 +1 @@
 2+(1 + 1 == 2) & (5 - 3 = 2) & (2 * 3 = 6) & (10 / 2 = 5) & (10 % 7 = 3) & (2 ** 4 = 16)
Index: branches/change-tagging/extensions/AbuseFilter/tests/regex.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/numbers.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/regex.t
@@ -0,0 +1 @@
 2+"foobér" rlike "^[fq]o{2}\\S.r$" & "foo" regex "^f..?.$"
Index: branches/change-tagging/extensions/AbuseFilter/tests/numbers.t
@@ -0,0 +1 @@
 2+ax = 10 & Fx = 15 & 10o = 8 & 10b = 2
Index: branches/change-tagging/extensions/AbuseFilter/tests/specialratio.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/specialratio.t
@@ -0,0 +1 @@
 2+specialratio("foó;") = 0.25
Index: branches/change-tagging/extensions/AbuseFilter/tests/ccnorm.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/ccnorm.t
@@ -0,0 +1 @@
 2+ccnorm("aanyone") = "AANY0NE"
Index: branches/change-tagging/extensions/AbuseFilter/tests/utf8.r
@@ -0,0 +1 @@
 2+MATCH
Index: branches/change-tagging/extensions/AbuseFilter/tests/utf8.t
@@ -0,0 +1 @@
 2+length("áéý") == 3
Index: branches/change-tagging/extensions/AbuseFilter/tests/cast.r
@@ -0,0 +1 @@
 2+MATCH

Status & tagging log