<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.badwolfmc.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AString%2Ftestcases</id>
	<title>Module:String/testcases - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.badwolfmc.com/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AString%2Ftestcases"/>
	<link rel="alternate" type="text/html" href="https://wiki.badwolfmc.com/w/index.php?title=Module:String/testcases&amp;action=history"/>
	<updated>2026-05-07T18:11:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.badwolfmc.com/w/index.php?title=Module:String/testcases&amp;diff=4532&amp;oldid=prev</id>
		<title>Merc: Merc changed the content model of the page Module:String/testcases from &quot;Scribunto module&quot; to &quot;Scribunto module&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.badwolfmc.com/w/index.php?title=Module:String/testcases&amp;diff=4532&amp;oldid=prev"/>
		<updated>2025-05-02T23:42:26Z</updated>

		<summary type="html">&lt;p&gt;Merc changed the content model of the page &lt;a href=&quot;/wiki/Module:String/testcases&quot; title=&quot;Module:String/testcases&quot;&gt;Module:String/testcases&lt;/a&gt; from &amp;quot;Scribunto module&amp;quot; to &amp;quot;Scribunto module&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 23:42, 2 May 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Merc</name></author>
	</entry>
	<entry>
		<id>https://wiki.badwolfmc.com/w/index.php?title=Module:String/testcases&amp;diff=234&amp;oldid=prev</id>
		<title>Merc: Created page with &quot;-- Unit tests for Module:String. Click talk page to run tests. local p = require(&#039;Module:UnitTests&#039;)  function p:test_len()     self:preprocess_equals_many(&#039;{{#invoke:Stri...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.badwolfmc.com/w/index.php?title=Module:String/testcases&amp;diff=234&amp;oldid=prev"/>
		<updated>2018-05-16T15:00:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;-- Unit tests for &lt;a href=&quot;/wiki/Module:String&quot; title=&quot;Module:String&quot;&gt;Module:String&lt;/a&gt;. Click talk page to run tests. local p = require(&amp;#039;Module:UnitTests&amp;#039;)  function p:test_len()     self:preprocess_equals_many(&amp;#039;{{#invoke:Stri...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Unit tests for [[Module:String]]. Click talk page to run tests.&lt;br /&gt;
local p = require(&amp;#039;Module:UnitTests&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function p:test_len()&lt;br /&gt;
    self:preprocess_equals_many(&amp;#039;{{#invoke:String|len|&amp;#039;, &amp;#039;}}&amp;#039;, {&lt;br /&gt;
        {&amp;#039; foo &amp;#039;, &amp;#039;5&amp;#039;},&lt;br /&gt;
        {&amp;#039;s= foo &amp;#039;, &amp;#039;3&amp;#039;},&lt;br /&gt;
        {&amp;#039;&amp;#039;, &amp;#039;0&amp;#039;},&lt;br /&gt;
        {&amp;#039;s=&amp;#039;, &amp;#039;0&amp;#039;},&lt;br /&gt;
        {&amp;#039;   &amp;#039;, &amp;#039;3&amp;#039;},&lt;br /&gt;
        {&amp;#039;最近の更新&amp;#039;, &amp;#039;5&amp;#039;},&lt;br /&gt;
    })&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test_replace()&lt;br /&gt;
    self:preprocess_equals_many(&amp;#039;{{#invoke:String|replace|&amp;#039;, &amp;#039;}}&amp;#039;, {&lt;br /&gt;
        {&amp;#039;1.1.1.1|.|/&amp;#039;, &amp;#039;1/1/1/1&amp;#039;},&lt;br /&gt;
        {&amp;#039;alpha (beta)| (| gamma (&amp;#039;, &amp;#039;alpha gamma (beta)&amp;#039;},&lt;br /&gt;
        {&amp;#039;Dog (cat)|%s%(.*%)||plain=false&amp;#039;, &amp;#039;Dog&amp;#039;},&lt;br /&gt;
    })&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test_match()&lt;br /&gt;
    self:preprocess_equals_many(&amp;#039;{{#invoke:String|match|&amp;#039;, &amp;#039;}}&amp;#039;, {&lt;br /&gt;
        {&amp;#039;dog (cat)|%((%a-)%)&amp;#039;, &amp;#039;cat&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat) (canary) (fish)|%((%a-)%)||-1&amp;#039;, &amp;#039;fish&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat) (canary) (fish)|%((%a-)%)||2&amp;#039;, &amp;#039;canary&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat) (canary) (fish)|%((%a-)%)|6|1&amp;#039;, &amp;#039;canary&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat) (canary) (fish)|%((%a-)%)|6|2&amp;#039;, &amp;#039;fish&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat)|%((%a-)%)||2|no_category=true&amp;#039;, &amp;#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;String Module Error: Match not found&amp;lt;/strong&amp;gt;&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat)|%((%a-)%)||2|ignore_errors=true&amp;#039;, &amp;#039;&amp;#039;},&lt;br /&gt;
    })&lt;br /&gt;
end&lt;br /&gt;
function p:test_match()&lt;br /&gt;
    self:preprocess_equals_many(&amp;#039;{{#invoke:String|match|&amp;#039;, &amp;#039;}}&amp;#039;, {&lt;br /&gt;
        {&amp;#039;dog (cat)|%((%a-)%)&amp;#039;, &amp;#039;cat&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat) (canary) (fish)|%((%a-)%)||-1&amp;#039;, &amp;#039;fish&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat) (canary) (fish)|%((%a-)%)||2&amp;#039;, &amp;#039;canary&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat) (canary) (fish)|%((%a-)%)|6|1&amp;#039;, &amp;#039;canary&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat) (canary) (fish)|%((%a-)%)|6|2&amp;#039;, &amp;#039;fish&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat)|%((%a-)%)||2|no_category=true&amp;#039;, &amp;#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;String Module Error: Match not found&amp;lt;/strong&amp;gt;&amp;#039;},&lt;br /&gt;
        {&amp;#039;dog (cat)|%((%a-)%)||2|ignore_errors=true&amp;#039;, &amp;#039;&amp;#039;},&lt;br /&gt;
    })&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test_find()&lt;br /&gt;
    self:preprocess_equals_many(&amp;#039;{{#invoke:String|find|&amp;#039;, &amp;#039;}}&amp;#039;, {&lt;br /&gt;
        {&amp;#039;&amp;#039;, &amp;#039;0&amp;#039;},&lt;br /&gt;
        {&amp;#039;source=&amp;#039;, &amp;#039;0&amp;#039;},&lt;br /&gt;
        {&amp;#039;source=|target=&amp;#039;, &amp;#039;0&amp;#039;},&lt;br /&gt;
        {&amp;#039;source=|target=Bob&amp;#039;, &amp;#039;0&amp;#039;},&lt;br /&gt;
        {&amp;#039;Bob|Joe&amp;#039;, &amp;#039;0&amp;#039;},&lt;br /&gt;
        {&amp;#039;Bob|b&amp;#039;, &amp;#039;3&amp;#039;},&lt;br /&gt;
        {&amp;#039;Bob Joe|oe&amp;#039;, &amp;#039;6&amp;#039;},&lt;br /&gt;
        {&amp;#039;source= Bob |o&amp;#039;, &amp;#039;2&amp;#039;},&lt;br /&gt;
        {&amp;#039; Bob |o&amp;#039;, &amp;#039;3&amp;#039;},&lt;br /&gt;
        {&amp;#039;높지만 급격히|만&amp;#039;, &amp;#039;3&amp;#039;},&lt;br /&gt;
        {&amp;#039;source=BAAAB|target=%w|plain=false&amp;#039;, &amp;#039;1&amp;#039;},&lt;br /&gt;
        {&amp;#039;source=BAAAB|target=%w|start=3|plain=false&amp;#039;, &amp;#039;3&amp;#039;},&lt;br /&gt;
        {&amp;#039;source=BAAAB|target=(%w)%1|plain=false&amp;#039;, &amp;#039;2&amp;#039;},&lt;br /&gt;
    })&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test_rep()&lt;br /&gt;
    self:preprocess_equals_many(&amp;#039;{{#invoke:String|rep|&amp;#039;, &amp;#039;}}&amp;#039;, {&lt;br /&gt;
        {&amp;#039;abc|1&amp;#039;, &amp;#039;abc&amp;#039;},&lt;br /&gt;
        {&amp;#039;a b|7&amp;#039;, &amp;#039;a ba ba ba ba ba ba b&amp;#039;},&lt;br /&gt;
        {&amp;#039;bla|glug|no_category=true&amp;#039;, &amp;#039;&amp;lt;strong class=&amp;quot;error&amp;quot;&amp;gt;String Module Error: function rep expects a number as second parameter, received &amp;quot;glug&amp;quot;&amp;lt;/strong&amp;gt;&amp;#039;},&lt;br /&gt;
        {&amp;#039;bla|glug|ignore_errors=true&amp;#039;, &amp;#039;&amp;#039;},&lt;br /&gt;
        {&amp;#039;àèò|3&amp;#039;, &amp;#039;àèòàèòàèò&amp;#039;}&lt;br /&gt;
    })&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Merc</name></author>
	</entry>
</feed>