m (→Structure) |
m (→Structure) |
||
Line 9: | Line 9: | ||
|- |
|- |
||
! util.cast |
! util.cast |
||
− | | utilities for casting values (i.e. from arguments |
+ | | utilities for casting values (i.e. from arguments) |
|- |
|- |
||
! util.html |
! util.html |
Revision as of 08:32, 6 November 2017
This is a meta module that is meant to be used only by other modules. It should not be invoked in wikitext. |
Overview
Provides utility functions for programming modules.
Structure
Group | Description |
---|---|
util.cast | utilities for casting values (i.e. from arguments) |
util.html | shorthand functions for creating some html tags |
util.misc | miscellaneous functions |
Tests
3 tests failed.
Name | Expected | Actual | |
---|---|---|---|
test_args_from_cargo_maps__cast_valid_fields | |||
test_args_from_cargo_maps__default_function | |||
test_args_from_cargo_maps__default_value | |||
test_args_from_cargo_maps__error_missing_in_fields | |||
test_args_from_cargo_maps__error_missing_in_order | |||
test_args_from_cargo_maps__func | |||
test_args_from_cargo_maps__name | |||
test_args_stats__errors | |||
test_args_stats__min_max | |||
test_args_stats__value | |||
test_cast_boolean | |||
test_cast_number | |||
test_cast_number__error_invalid_number | |||
test_cast_number__error_max | |||
test_cast_number__error_min | |||
test_cast_number__invalid_with_default | |||
test_html_abbr | |||
test_html_error | <span class="module-error">Module Error: Test</span> | <strong class="error"><span class="module-error">Module Error: Test</span></strong> | |
test_misc_add_category | [[Category:test]] | ||
test_misc_get_frame | |||
test_misc_is_frame | |||
test_smw_safeguard | Lua error -- Module:Util/testcases:308: attempt to index field 'smw' (a nil value) | ||
test_string_split_args | |||
test_table_find_in_nested_array__assoc |