Modulo:FictionTV/test: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
+test per "in corso"
aggiornati test
Riga 4:
function p:test_miniserie_TV()
self:preprocess_equals_many("{{#invoke:FictionTV/sandbox|categorie_anno|debug=1|", "}}", {
{ 'tipofiction=miniserie TV|annoprimatv=[[2010]]', '[[:Categoria:Miniserie televisive del 2010]]' },
-- il wikilink è obbligatorio
{ 'tipofiction=miniserie TV|annoprimatv=[[2010]]', '[[:Categoria:MiniserieErrori televisivedi compilazione del 2010template FictionTV]]' },
})
end
Riga 11 ⟶ 12:
function p:test_film_TV()
self:preprocess_equals_many("{{#invoke:FictionTV/sandbox|categorie_anno|debug=1|", "}}", {
{ 'tipofiction=film TV|annoprimatv=[[2010]]', '[[:Categoria:Film per la televisione del 2010]]' },
-- il wikilink è obbligatorio
{ 'tipofiction=film TV|annoprimatv=[[2010]]', '[[:Categoria:FilmErrori perdi la televisionecompilazione del 2010template FictionTV]]' }
})
end
Riga 19 ⟶ 21:
self:preprocess_equals_many("{{#invoke:FictionTV/sandbox|categorie_anno|debug=1|", "}}", {
-- anno singolo
{ 'tipofiction=serie TV|annoprimatv=[[2010]]', '[[:Categoria:Serie televisive iniziate nel 2010]] [[:Categoria:Serie televisive terminate nel 2010]]' },
-- il wikilink è obbligatorio
{ 'tipofiction=serie TV|annoprimatv=[[2010]]', '[[:Categoria:SerieErrori televisivedi iniziatecompilazione neldel 2010]]template [[:Categoria:Serie televisive terminate nel 2010FictionTV]]' },
-- con intervallo, usando il trattino (U+002D) con e senza spazi
{ 'tipofiction=serie TV|annoprimatv=[[2010]]-[[2011]]', '[[:Categoria:Serie televisive iniziate nel 2010]] [[:Categoria:Serie televisive terminate nel 2011]]' },
{ 'tipofiction=serie TV|annoprimatv=[[2010]] - [[2011]]', '[[:Categoria:Serie televisive iniziate nel 2010]] [[:Categoria:Serie televisive terminate nel 2011]]' },
{ 'tipofiction=serie TV|annoprimatv=[[2010]] - in produzione', '[[:Categoria:Serie televisive iniziate nel 2010]] [[:Categoria:Serie televisive in produzione]]' },
{ 'tipofiction=serie TV|annoprimatv=[[2010]] - in corso', '[[:Categoria:Serie televisive iniziate nel 2010]] [[:Categoria:Serie televisive in produzione]]' },
-- con intervallo, usando la lineetta enne (U+2013) con e senza spazi
{ 'tipofiction=serie TV|annoprimatv=[[2010]]–[[2011]]', '[[:Categoria:Serie televisive iniziate nel 2010]] [[:Categoria:Serie televisive terminate nel 2011]]' },
{ 'tipofiction=serie TV|annoprimatv=[[2010]] – [[2011]]', '[[:Categoria:Serie televisive iniziate nel 2010]] [[:Categoria:Serie televisive terminate nel 2011]]' },
{ 'tipofiction=serie TV|annoprimatv=[[2010]] – in produzione', '[[:Categoria:Serie televisive iniziate nel 2010]] [[:Categoria:Serie televisive in produzione]]' },
{ 'tipofiction=serie TV|annoprimatv=[[2010]] – in corso', '[[:Categoria:Serie televisive iniziate nel 2010]] [[:Categoria:Serie televisive in produzione]]' }
})
end
Riga 36 ⟶ 37:
function p:test_serial_TV()
self:preprocess_equals_many("{{#invoke:FictionTV/sandbox|categorie_anno|debug=1|", "}}", {
-- anno singolo
{ 'tipofiction=serial TV|annoprimatv=2010', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi terminati nel 2010]]' },
{ 'tipofiction=serial TV|annoprimatv=[[2010]]', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi terminati nel 2010]]' },
-- il wikilink è obbligatorio
{ 'tipofiction=serial TV|annoprimatv=2010', '[[:Categoria:SerialErrori televisividi iniziaticompilazione neldel 2010]]template [[:Categoria:Serial televisivi terminati nel 2010FictionTV]]' },
-- con intervallo, usando il trattino (U+002D) con e senza spazi
{ 'tipofiction=serial TV|annoprimatv=[[2010]]-[[2011]]', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi terminati nel 2011]]' },
{ 'tipofiction=serial TV|annoprimatv=[[2010]] - [[2011]]', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi terminati nel 2011]]' },
{ 'tipofiction=serial TV|annoprimatv=[[2010]] - in produzione', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi in produzione]]' },
{ 'tipofiction=serial TV|annoprimatv=[[2010]] - in corso', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi in produzione]]' },
-- con intervallo, usando la lineetta enne (U+2013) con e senza spazi
{ 'tipofiction=serial TV|annoprimatv=[[2010]]–[[2011]]', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi terminati nel 2011]]' },
{ 'tipofiction=serial TV|annoprimatv=[[2010]] – [[2011]]', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi terminati nel 2011]]' },
{ 'tipofiction=serial TV|annoprimatv=[[2010]] – in produzione', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi in produzione]]' },
{ 'tipofiction=serial TV|annoprimatv=[[2010]] – in corso', '[[:Categoria:Serial televisivi iniziati nel 2010]] [[:Categoria:Serial televisivi in produzione]]' }
})
end