Модуль:PD-auto/тести
Документацію для цього модуля можна створити у Модуль:PD-auto/тести/документація
-- Юніт-тести для [[Модуль:PD-auto]]. Перейдіть на сторінку обговорення, щоб їх запустити.
local p = require('Модуль:UnitTests')
function p:test_pd()
self:preprocess_equals_preprocess_many('{{#invoke:PD-auto|pd|', '}}',
'', '', {
{'country=FF|author-mode=yes|death-year=1907', ''},
{'country=FF|death-year=1907|publication-year=1905', ''},
{'country=FF|death-year=1987|publication-year=1905', ''},
{'death-year=1907|publication-year=1905', ''},
{'death-year=1987|publication-year=1905', ''},
{'country=UA', ''},
{'country=UA|publication-year=1905', ''},
{'country=UA|publication-year=1905|author-known=no', ''},
{'country=UA|death-year=1907|publication-year=1905', ''},
{'country=UA|death-year=1944|publication-year=1950', ''},
{'country=UA|death-year=1944|publication-year=1950|US-publication-year=1957', ''},
{'country=UA|death-year=1944|publication-year=1960', ''},
{'country=UA|death-year=1944|publication-year=1970', ''},
{'country=UA|death-year=1944|publication-year=1980', ''},
{'country=UA|death-year=1950|publication-year=1979', ''},
{'country=UA|death-year=1945|publication-year=1905', ''},
{'country=UA|death-year=1947|publication-year=1905', ''},
{'country=UA|death-year=1951|publication-year=1905', ''},
{'country=UA|death-year=1952|publication-year=1905', ''},
{'country=UA|death-year=1940|publication-year=1930', ''},
{'country=UA|death-year=1956|publication-year=1956', '"Мисливські Усмішки" Остапа Вишні'},
{'country=UA|death-year=1963|publication-year=1944', '"Тигролови" Івана Багряного'},
{'country=US', ''},
{'country=US|publication-year=1957', '"Час болю" Богдана Бойчука'},
{'country=US|US-publication-year=1957', '"Час болю" Богдана Бойчука'},
{'country=UA|author-mode=yes|death-year=1963', 'Іван Багряний'},
{'country=UA|death-year=1934|publication-year=1988|rehabilitation-year=1957', ''},
{'country=PL|publication-year=1930|death-year=1940', '[[Роксоляна]]'}
})
end
return p