모듈:오류/테스트 케이스

Module
-- [Module]의 유닛 테스트:에러]] 。Talk 페이지를 클릭하여 테스트를 실행합니다. 현지의 p = 요구하다('모듈:유닛 테스트')  기능. p:test_error()  자신:preprocess_param_many(' { { # private : } 。에러', 에러, {     -- 최소 파라미터 입력   {'', '<strong class="error"><strong>'},   {'', '<strong class="error"><strong>', {노우키 = '네'}},   {' ', '<strong class="error"> </strong>'},   {'&#x20', '<strong class="error">&#x20 </strong>'},   {'{{!}}', '<strong class="error"> </strong>'},   {'태그=p', '<p class="error"><p>', {노우키 = '네'}},   {'message=', '<strong class="error"><strong>'},   {'message=', '<strong class="error"><strong>', {노우키 = '네'}},   {' message = tag = p', '<p class="error"><p>', {노우키 = '네'}},   {' 1', '<strong class="error"><strong>'},   {'1=', '<strong class="error"><strong>', {노우키 = '네'}},   {'1= 태그=p', '<p class="error"><p>'},      -- 일반 메시지   {'오류 메시지 예시', '<strong class="error"><strong>'},   {에러 메시지 예시, '<strong class="error"><strong>'},   {' 메시지=오류 메시지 예시', '<strong class="error">에러 메시지의 예</strong>},   {' message = 오류 메시지 예시', '<strong class="error">에러 메시지의 예</strong>},      -- 태그   {'예: 오류 메시지 태그=p', '<p class="error"><p>'},   {'태그=p', '<p class="error"><p>'}, -- 메시지 없음   {' 예제 오류 메시지 태그 = p', '<p class="error"><p>', {노우키 = '네'}},   {'예: 오류 메시지 태그=div', '<div class="error"></div>'},   {'예: 오류 메시지 태그=div', '<div class="error"></div>'},   {'예: 오류 메시지 태그=span', '<span class="error"></span>'},   {'예: 오류 메시지 태그=adsf', '<strong class="error"><strong>'},   {'예: 오류 메시지 태그=strong', '<strong class="error"><strong>'},   {'예: 오류 메시지 태그=&#x0000;', '<strong class="error"><strong>'}, -- ASCII 눌   {'예: 오류 메시지 태그=', '<strong class="error"><strong>'}, --nbsp   {'예: 오류 메시지 태그 = 오류!}}', '<strong class="error"><strong>'},      -- 번호 매개 변수 사용   {'1=오류 메시지 표시', '<strong class="error">에러 메시지의 예</strong>},   {'1= 오류 메시지 예시', '<strong class="error">에러 메시지의 예</strong>},   {'예 = 메시지', '<strong class="error"><strong>'},   {'1 = 예제 = 메시지', '<strong class="error">예: = 메시지 </strong>},      -- 보다 극단적인 입력 옵션   {'  ', '<strong class="error"><strong>'}, --nbsp   {'<br/>', '<strong class="error"><strong>'},   {'\n', '<strong class="error"><strong>', {노우키 = '네'}},   {'&x0000;', '<strong class="error"><strong>'}, -- ASCII 눌      -- 까다로운 입력 옵션   {' 0', '<strong class="error"><strong>'}, --nbsp   {'false', '<strong class="error"><strong>'},   {'태그=태그', '<strong class="error"><strong>'},   {' 1', '<strong class="error"><strong>'},   {'참', '<strong class="error"><strong>'},  }, {노우키=1}) 끝.  돌아가다 p