Module:Electowidget/doc: Difference between revisions
Content added Content deleted
(Put in usage docs, which don't work. This is basically my test suite) |
(Adding a second test case) |
||
Line 1: | Line 1: | ||
This is the very beginning of a Lua implementation of [[Electowidget]]. |
This is the very beginning of a Lua implementation of [[Electowidget]]. |
||
== |
== Tests == |
||
=== |
=== Test 1 === |
||
<blockquote><nowiki> |
<blockquote><nowiki> |
||
{{#invoke:Electowidget|parse_prefs_line|24: "蘇業"/5 > DGM/2 = AM/2 > SBJ/}} |
{{#invoke:Electowidget|parse_prefs_line|24: "蘇業"/5 > DGM/2 = AM/2 > SBJ/}} |
||
</nowiki></blockquote> |
</nowiki></blockquote> |
||
=== Result === |
=== Result 1 === |
||
{{#invoke:Electowidget|parse_prefs_line|24: "蘇業"/5 > DGM/2 = AM/2 > SBJ/}} |
{{#invoke:Electowidget|parse_prefs_line|24: "蘇業"/5 > DGM/2 = AM/2 > SBJ/}} |
||
=== Test 2 === |
|||
<blockquote><nowiki> |
|||
{{#invoke:Electowidget|get_data}} |
|||
</nowiki></blockquote> |
|||
=== Result 2 === |
|||
{{#invoke:Electowidget|get_data}} |
Revision as of 01:33, 7 September 2023
This is the very beginning of a Lua implementation of Electowidget.
Tests
Test 1
{{#invoke:Electowidget|parse_prefs_line|24: "蘇業"/5 > DGM/2 = AM/2 > SBJ/}}
Result 1
table
Test 2
{{#invoke:Electowidget|get_data}}
Result 2
Lua error: bad argument #1 to 'title.new' (number or string expected, got nil).