-- Tests para el [[Módulo:URL]]. El resultado está en la página de discusión.
local p = require('Module:UnitTests')
 
function p:test_hola()
    self:preprocess_equals("{{#Invoke:URL | url||Sitio web oficial}}", "")	    	
    self:preprocess_equals("{{#Invoke:URL | url| |Sitio web oficial}}", "")
    self:preprocess_equals("{{#Invoke:URL | url|  |Sitio web oficial}}", "")	    
    self:preprocess_equals('{{#invoke:URL | url|[http://www.wittgen-cam.ac.uk/ Archivo Wittgedstein]}}', '[http://www.wittgen-cam.ac.uk/ Archivo Wittgedstein]')
    self:preprocess_equals('{{#invoke:URL | url|http://www.thegatesnotes.com/|Sitio web oficial}}', '[http://www.thegatesnotes.com/ Sitio web oficial]')
    self:preprocess_equals('{{#invoke:URL | url|www.anamaria-matute.com|Sitio web oficial}}', '[http://www.anamaria-matute.com Sitio web oficial]')
    self:preprocess_equals('{{#invoke:URL | url|http://www.ziegler-girls.com}}', '[http://www.ziegler-girls.com www.ziegler-girls.com]')
    self:preprocess_equals('{{#invoke:URL | url|http://margaretatwood.ca/}}', '[http://margaretatwood.ca/ margaretatwood.ca]')
    self:preprocess_equals('{{#invoke:URL | url|{{{página web}}}}}', '{{{página web}}}')
    
end
 
return p