모듈:Get ShortDescription/테스트 사례

Module
모듈에 대한 장치 테스트:GetShortDescription]]].대화 페이지에서 모든 테스트를 실행합니다. 짧은 설명의 변경 가능한 특성으로 인해 이러한 테스트 중 일부는 테스트를 실행하기 전에 업데이트해야 할 수 있습니다.  현지의 p = 요구하다('모듈:단위 테스트')  --[[빈 params ]]  기능. p:test_no_name_param()  자신:preprocess_message('{Num}:GetShortDescription main stringify=yes}', '<span style="color:#d33">[모듈:GetShortDescription]]에는 네임스페이스를 포함한 페이지 이름이 필요합니다.</span>[범주:모듈에 대한 경고 메시지를 표시하는 페이지:'짧은 설명 가져오기]]', {노비키 = 1}) 끝.  기능. p:test_no_name_value()  자신:preprocess_message('{Num}:GetShortDescription main stringify=yes name=}', '<span style="color:#d33">[모듈:GetShortDescription]]에는 네임스페이스를 포함한 페이지 이름이 필요합니다.</span>[범주:모듈에 대한 경고 메시지를 표시하는 페이지:'짧은 설명 가져오기]]', {노비키 = 1}) 끝.  기능. p:test__no_only_value()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만=}}', "명시적인 간단한 설명") 끝.  기능. p:test_no_no_message_value()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명이 선호=}', "명시적인 간단한 설명") 끝.  기능. p:test_no_objectify_betify_value()  자신:preprocess_message('{Num}:GetShortDescription main stringify=yesobjectify_main=}', '<span style="color:#d33">[모듈:GetShortDescription]]에는 네임스페이스를 포함한 페이지 이름이 필요합니다.</span>[범주:모듈에 대한 경고 메시지를 표시하는 페이지:'짧은 설명 가져오기]]', {노비키 = 1}) 끝.  --[[존재하지 않는 페이지 이름]]  기능. p:test__consistent_page_name()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/존재하지 않는 페이지}', '') 끝.  --[[알 수 없는 매개 변수 제공]]  기능. p:test_proxy_param_with_no_value_proxy()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 알 수 없음=}}', "명시적인 간단한 설명") 끝.  기능. p:test_proxy_param_with_value_proxy()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명은 알 수 없음=알 수 없음}', "명시적인 간단한 설명") 끝.  --[[알 수 없는 매개 변수 발견]]  기능. p:test__message_param_found()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/알 수 없는 매개변수가 있는 명시적인 짧은 설명}}.', "알 수 없는 매개 변수를 사용하여 간단한 설명 명시") 끝.  기능. p:test_complex_complex_complex_params()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/복잡한 알 수 없는 매개변수가 있는 명시적인 짧은 설명}}', "복잡한 알 수 없는 매개 변수가 있는 명시적인 간단한 설명") 끝.  --[[여러 개의 짧은 설명]]  --[[ 일시적으로 비활성화된 다른 확인 필요  함수 p:test__two_short_interions_numbered_after() self:process_process{#process:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/sandbox/뒤에 번호가 붙은 두 개의 명시적인 짧은 설명은 다음으로 번호가 매겨집니다.}, "명시적인 짧은 설명은 두 번째로 번호가 매겨집니다(사용됨)." 끝.  함수 p:test__two_short_configions_numbered_before() self:process_process{#process:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/sandbox/두 개의 명시적인 짧은 설명 앞에 번호가 매겨짐}, "명시적인 짧은 설명은 번호가 매겨지지 않은 두 번째(사용됨)" 끝.  ]]  기능. p:test__two_short_설명_discription_discription()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/sandbox/두 개의 명시적인 짧은 설명 템플릿}', "명시적인 짧은 설명 초(사용)") 끝.  기능. p:test_2_short_description_description_first_notreplace()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/sandbox/두 개의 명시적인 짧은 설명 템플릿 먼저 없음}', "명시적인 짧은 설명 초(사용)") 끝.  기능. p:test_2_short_description_description_second_notreplace()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/sandbox/두 개의 명시적인 짧은 설명 템플릿 두 번째 norreplace}', "짧은 설명을 먼저 명시(사용)") 끝.  기능. p:test_3_short_설명_second_notreplace()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/sandbox/세 개의 명시적인 짧은 설명 템플릿 두 번째 norreplace}', "명시적인 짧은 설명 세 번째(사용)") 끝.  기능. p:test_three_short_설명_second_second_second_second_second_second_second_second_second()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/sandbox/세 개의 명시적인 짧은 설명 템플릿 두 번째 없음 세 번째 없음 대체}}', "짧은 설명을 먼저 명시(사용)") 끝.  --[[이름 외에는 없음]  기능. p:test_proxy_proxy_proxydata_does_not_proxy()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:프레드 갠트/샌드박스/명시적인 짧은 설명}', "명시적인 간단한 설명") 끝.  기능. p:test__message_not_not_not_not_not_not_not_not_not_not_not_not()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 없음}}', "") 끝.  기능. p:test_beta_beta_beta_beta_beta_beta()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=위키백과}', "무료 다국어, 온라인, 크라우드소싱 백과사전") 끝.  기능. p:test__message_not_not_not_message_message_message_data_message()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=예}', "Wikimedia 모호성 해제 페이지") 끝.  --[[이름만]  기능. p:test_only_not_not_not_not_not_not_not_not_not_not_not_not_not.()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만=계속}', "명시적인 간단한 설명") 끝.  기능. p:test_only_sysidata__sysidata_sysidata_does_not_sysidata()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만 =httpsidata}}', "") 끝.  기능. p:test_only_proxy__proxy_do_not_not_proxy_doidata_does_not_proxy()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만 없음=계속}', "") 끝.  기능. p:test_only_hydidata_hyda_hyda_hyda_hyda_hyda_hyda_hyda_hyda_hyd()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 없음 =httpsidata}}', "") 끝.  기능. p:test_only_messages_del_del_del_del_del_del_data_syslog()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=위키백과만=wikipedia}', "무료 다국어, 온라인, 크라우드소싱 백과사전") 끝.  기능. p:test_only_httpsidata_https_https_https_htpsidata_https()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=위키백과만=httpsidata}}', "무료 다국어 온라인 백과사전") 끝.  기능. p:test_only_message_does_not_does_not_not_not_doidata_does()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=예시만=예시}', "") 끝.  기능. p:test_only_multidata__discount_not_not_discount_not_not_multidata_discount_discount()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=예만 =httpsidata}}', "Wikimedia 모호성 해제 페이지") 끝.  --[[이름 및 선호]]  기능. p:test_not_not_not_not_not_not_not_not_not_not_not_not_not_not.()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명이 더 좋습니다=freed_, "명시적인 간단한 설명") 끝.  기능. p:test_messages_messages_messages_messages_messages_messages_not_messages_messages()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명은 =httpsidata}}을(를) 선호합니다.', "명시적인 간단한 설명") 끝.  기능. p:test_not_not_not_not_not_not_not_not_not_not_not_not_not_not_not_not_n()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명은 선호하지 않음=sshot}', "") 끝.  기능. p:test_nots_nots_nots_nots_nots_nots_nots_nots_nots_nots_nots_nots_nots_()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 없음 prefer=sysidata}}', "") 끝.  기능. p:test_beta_beta_beta_beta_beta_beta_beta()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=위키백과는 =http://facebook:', "무료 다국어, 온라인, 크라우드소싱 백과사전") 끝.  기능. p:test_messages_messages_messages_messages_messages_messages_messages()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=위키백과는 =httpsidata}}'를 선호합니다., "무료 다국어 온라인 백과사전") 끝.  기능. p:test__test_not_not_not_not_not_not_not_not_not_not_notidata_nots()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=예를 들어 prefer=continue}}', "Wikimedia 모호성 해제 페이지") 끝.  기능. p:test_messages_messages_messages_not_not_messages_messages_messages_messages_messages()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=예를 들어 prefer=subidata}}', "Wikimedia 모호성 해제 페이지") 끝.  --[[충돌 매개변수]] --[[오직 =http 및 prefer=httpidata ]]  기능. p:test__testing__only_messages_messages_messages_messages_messages_messages_messages_not_messages_messages_messages()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만 =아마도 선호하는 것 같다=slotidata}}', "명시적인 간단한 설명") 끝.  기능. p:test__downting__only_down_down_down_down_does_not_does_not_does_does_not_does_not_does_not_does_not_d()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만 없음=아마도 선호=slidata}}', "") 끝.  기능. p:test__testing__only_messages_messages_messages_messages_messages_messages_messages_messages_messages()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=위키백과만=일반적으로 선호하는 것은=hypidata}}', "무료 다국어, 온라인, 크라우드소싱 백과사전") 끝.  기능. p:test__downting__only_down_down_down_down_down_not_down_down_downs_down_down_down_down_down_down_down_down()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=예시만 =https prefer=httpsidata}}', "") 끝.  --[[단=httpidata 및 prefer=http]]  기능. p:test__remitting__only_compidata__compidata_compidata_do_not_compidata_not_compidata()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만=hypidata 선호=hypad}', "") 끝.  기능. p:test__downloading__only_downloading__downloading_not_not_not_not_downloading_not_not_not_not_not_not_not_downloading_()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만 없음=smartidata 선호=smarticle}', "") 끝.  기능. p:test__testing__only_metridata__metridata__metridata_metridata_metridata_metridata()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름='위키백과만=wikidata 선호=wikida}', "무료 다국어 온라인 백과사전") 끝.  기능. p:test__downting__only_down_down_do_not_do_not__doidata_does_does_does_does_does_does_does()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=예만 =httpidata 선호 =http}', "Wikimedia 모호성 해제 페이지") 끝.  --[[비정상적인 명시적 설명]]  기능. p:test_only_message_discovery__messages()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만 정의되지 않음=filename}', "") 끝.  기능. p:test_only_message_empty()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명만 비어 있음=explicit}', "") 끝.  기능. p:test_only_message_discovery__messages()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 없음=없음}', "스캐너덜너덜) 끝.  기능. p:test_only_numbered_numbered_numbered()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 번호만 =", "명시적인 간단한 설명 번호 지정") 끝.  기능. p:test_only_monly_complex_()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 콤플렉스만=계속}', "명시적인 짧은 설명 복합") 끝.  기능. p:test_only_numbered_complex__numbered()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 콤플렉스 번호만 =", "명시적인 간단한 설명 복합 번호 지정") 끝.  기능. p:test_only_message_numbered__empty()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 번호만 비어 있음=", "") 끝.  기능. p:test_only_numbered__numbered__noved()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 번호는 none =notely}입니다.', "스캐너덜너덜) 끝.  기능. p:test_only_message_complex__empty()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 콤플렉스만 비어 있음=explicit}', "") 끝.  기능. p:test_only_monly_complex__complex__messages()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 콤플렉스 none only=notely}', "스캐너덜너덜) 끝.  기능. p:test_only_message_complex__numbered__empty()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 콤플렉스 번호만 비어 있음=", "") 끝.  기능. p:test_only_modules__complex__numbered__discovery()  자신:preprocess_message('{Num}:GetShortDescription main stringify=예 이름=사용자:Fred Gandt/샌드박스/명시적인 짧은 설명 콤플렉스 번호는 none=notely}입니다.', "스캐너덜너덜) 끝.  --[[테스트; 제정신 검사; 실패해야 함]]  --function p:test__the_test() self:process_process{#process:GetShortDescription main stringify=예 이름=예}), "테스트") --끝  --[[외국어 위키데이터]]  lang_talic= lang_nocat= lang_size= lang_cat= lang_rtl= lang_no=를 테스트하려면 영어 이외의 언어로 된 Wikidata 설명을 반환해야 합니다.  돌아가다 p