Module:Sandbox/Nardog/5t

-- Unit tests for Module:IPA. Click talk page to run tests. local p = require('Module:UnitTests')

function p:test_all self:preprocess_equals_many(, {		{			'foo',			'foo '		},		{			'foo|lang=en|class=foo bar|tooltip=Random tooltip',			' foo '		},		{			'foo|bar|tooltip=|debug=yes',			' Error: : unrecognized language code: foo Category:IPA template errors'		},		{			'foo bar|tooltip=',			' foo bar '		},		{			'foo bar|wrap=none|tooltip=',			' foo bar '		},		{			'foo bar|wrap=all|tooltip=',			' foo bar '		},		{			'1=foo bar|tooltip=',			' foo bar '		},		{			'foo bar baz qux|tooltip=',			' foo bar baz qux '		},		{			'foo|audio=Example.ogg|tooltip=|debug=yes',			' foo ' .. string.char(0x7f) .. '\'"`UNIQ--phonos-00000000-QINU`"\ .. string.char(0x7f) .. 'Category:Pages including recorded pronunciations' },		{			'fr|foo|-|Example.ogg', ' French pronunciation: [foo] ' .. string.char(0x7f) .. '\'"`UNIQ--phonos-00000001-QINU`"\'' .. string.char(0x7f) },		{			'fra|foo|lang', ' French: [foo] ' },		{			'fr|foo|', ' [foo] ' },		{			'fr|foo|label=', ' [foo] ' },		{			'fr|foo|label=Random label:|small=yes', string.char(0x7f) .. '\'"`UNIQ--templatestyles-00000002-QINU`"\'' .. string.char(0x7f) .. ' Random label: [foo] ' },		{			'fr|foo|link=yes', ' French pronunciation: [foo] ' },		{			'fr|foo|generic=yes', ' French pronunciation: [foo] ' },		{			'ace|foo', ' Acehnese pronunciation: [foo] ' },		{			'en|foo', ' /foo/ ' },		{			'en-uk|foo', ' UK: /foo/ ' },		{			'en-uk|foo|link=yes', ' UK: /foo/ ' },		{			'sv-FI|foo|lang', ' Finland Swedish: [foo] ' },		{			'ca-ES-VC|foo|lang|link=yes', ' Valencian: [foo] ' },		{			'nan-TW|foo|lang|link=yes', ' Taiwanese Hokkien: [foo] ' },		{			'und|foo', ' IPA: [foo] ' },	}, { combined = true }) end

return p