dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2732754
)
fix broken ISBN test, add two to test space-delimited ISBNs
author
Ilmari Karonen
<vyznev@users.mediawiki.org>
Fri, 1 Dec 2006 03:09:39 +0000
(
03:09
+0000)
committer
Ilmari Karonen
<vyznev@users.mediawiki.org>
Fri, 1 Dec 2006 03:09:39 +0000
(
03:09
+0000)
maintenance/parserTests.txt
patch
|
blob
|
history
diff --git
a/maintenance/parserTests.txt
b/maintenance/parserTests.txt
index
26a12e1
..
d6c5b4d
100644
(file)
--- a/
maintenance/parserTests.txt
+++ b/
maintenance/parserTests.txt
@@
-6074,7
+6074,27
@@
ISBN with a dummy number
!! input
ISBN ---
!! result
-<p><a href="/index.php?title=Special:Booksources&isbn=" class="internal">ISBN ---</a>
+<p>ISBN ---
+</p>
+!! end
+
+
+!! test
+ISBN with space-delimited number
+!! input
+ISBN 92 9017 032 8
+!! result
+<p><a href="/index.php?title=Special:Booksources&isbn=9290170328" class="internal">ISBN 92 9017 032 8</a>
+</p>
+!! end
+
+
+!! test
+ISBN with multiple spaces, no number
+!! input
+ISBN foo
+!! result
+<p>ISBN foo
</p>
!! end