| Test suite status | |
|---|---|
| Scribunto test cases | |
| Code coverage |
Unit test report for Mods.
Execution time: 26.9 msTest cases failing:Test members missing:buildModTableByPolaritybuildModTableByRaritygetModCountsimpleModNameListtransmutableModsList
Scribunto test cases
| ||||
|---|---|---|---|---|
| Status | Code | Expected | Actual | Differs at |
{{#invoke:mods|getValue}} | getValue(modName, valName): Not enough arguments | p.getValue(frame): No mod specified | error | |
{{#invoke:mods|getValue}} | getValue(modName, valName): Not enough arguments | p.getValue(frame): No mod specified | error | |
{{#invoke:mods|getValue|Serration}} | getValue(modName, valName): Not enough arguments | bad argument #1 to 'upper' (string expected, got nil) | error | |
{{#invoke:mods|getValue|Serration|Rarity}} | Uncommon | Uncommon | ||
{{#invoke:mods|getValue|Serration|rarity}} | Uncommon | Uncommon | ||
{{#invoke:mods|getValue|Serration|RARITY}} | Uncommon | Uncommon | ||
{{#invoke:mods|getValue|Serration|MaxRank}} | 10 | 10 | ||
{{#invoke:mods|getValue|Serration|Incompatible}} | [[Amalgam Serration]], [[Flawed Serration]] | [[Amalgam Serration]], [[Higasa Serration]], [[Flawed Serration]], [[Spectral Serration]] | 26 " F" vs. "H" | |
{{#invoke:mods|getValue|Serration|Transmutable}} | true | true | ||
{{#invoke:mods|getValue|Serration|Introduced}} | [[Closed Beta Updates#Vanilla|Vanilla]] | [[Closed Beta Updates#Vanilla|Vanilla]] (2012-10-25) | 40 " " vs. " " | |
{{#invoke:mods|getValue|Serration|Placeholder}} | Unknown argument | 1 " U" vs. "" | ||
local userError = require('Dev:User error')
local notEnoughArg = '$1: Not enough arguments'
return {
getValue = {
options = {
mode = 'invocation',
},
tests = {
{ nil, (notEnoughArg:gsub('$1', 'getValue(modName, valName)')) },
{ '', (notEnoughArg:gsub('$1', 'getValue(modName, valName)')) },
{ 'Serration', (notEnoughArg:gsub('$1', 'getValue(modName, valName)')) },
{ 'Serration|Rarity', 'Uncommon' },
{ 'Serration|rarity', 'Uncommon' },
{ 'Serration|RARITY', 'Uncommon' },
{ 'Serration|MaxRank', '10' },
{ 'Serration|Incompatible', '[[Amalgam Serration]], [[Flawed Serration]]' },
{ 'Serration|Transmutable', 'true' },
{ 'Serration|Introduced', '[[Closed Beta Updates#Vanilla|Vanilla]]'},
{ 'Serration|Placeholder', 'Unknown argument' },
},
}
}