import {moduloActividad, actividadTest} from '../../helpers/actividadTest';

const nombre = 'LaGranAventuraDelMarEncantado';

moduloActividad(nombre);

actividadTest(nombre, {
	descripcionAdicional: 'Da error al dar sombrero sin tenerlo',
	solucion: '<xml xmlns="http://www.w3.org/1999/xhtml"><block type="al_empezar_a_ejecutar" id="1" deletable="false" movable="false" editable="false" x="0" y="0"><statement name="program"><block type="MoverACasillaDerecha" id="11"><next><block type="Darsombrero" id="24"></block></next></block></statement></block></xml>',
	errorEsperado: 'Para darle el sombrero al mago necesitás sacarlo del cofre.',
});

actividadTest(nombre, {
	solucion: '<xml xmlns="http://www.w3.org/1999/xhtml"><block type="al_empezar_a_ejecutar" id="2" deletable="false" movable="false" editable="false" x="0" y="0"><statement name="program"><block type="procedures_callnoreturn" id="3"><mutation name="Buscar llave"></mutation><next><block type="procedures_callnoreturn" id="4"><mutation name="Buscar Sombrero"></mutation><next><block type="procedures_callnoreturn" id="5"><mutation name="Buscar espada"></mutation><next><block type="procedures_callnoreturn" id="6"><mutation name="Luchar con el caballero"></mutation><next><block type="procedures_callnoreturn" id="7"><mutation name="Rescatar princesa"></mutation></block></next></block></next></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="8" x="500" y="-5"><mutation></mutation><field name="NAME">Buscar Sombrero</field>' + 
            '<statement name="STACK"><block type="MoverACasillaArriba" id="9"><next><block type="repetir" id="10" inline="true"><value name="count"><block type="math_number" id="11"><field name="NUM">4</field></block></value><statement name="block"><block type="MoverACasillaIzquierda" id="12"></block></statement><next><block type="Abrircofre" id="49"></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="13" x="249" y="14"><mutation></mutation><field name="NAME">Rescatar princesa</field><statement name="STACK"><block type="repetir" id="14" inline="true"><value name="count"><block type="math_number" id="15"><field name="NUM">2</field></block></value><statement name="block"><block type="MoverACasillaAbajo" id="16"><next><block type="MoverACasillaDerecha" id="17"></block></next></block></statement><next><block type="Escaparenunicornio" id="18">' + 
            '</block></next></block></statement></block><block type="procedures_defnoreturn" id="19" x="552" y="138"><mutation></mutation><field name="NAME">Luchar con el caballero</field><statement name="STACK"><block type="repetir" id="20" inline="true"><value name="count"><block type="math_number" id="21"><field name="NUM">2</field></block></value><statement name="block"><block type="MoverACasillaArriba" id="22"></block></statement><next><block type="MoverACasillaDerecha" id="23"><next><block type="Atacarconespada" id="24"></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="25" x="10" y="274"><mutation></mutation><field name="NAME">Buscar llave</field><statement name="STACK"><block type="repetir" id="26" inline="true"><value name="count"><block type="math_number" id="27"><field name="NUM">2</field></block></value><statement name="block">' + 
            '<block type="MoverACasillaArriba" id="28"></block></statement><next><block type="repetir" id="29" inline="true"><value name="count"><block type="math_number" id="30"><field name="NUM">4</field></block></value><statement name="block"><block type="MoverACasillaDerecha" id="31"></block></statement><next><block type="Agarrarllave" id="73"></block></next></block></next></block></statement></block><block type="procedures_defnoreturn" id="32" x="309" y="270"><mutation></mutation><field name="NAME">Buscar espada</field><statement name="STACK"><block type="repetir" id="33" inline="true"><value name="count"><block type="math_number" id="34"><field name="NUM">3</field></block></value><statement name="block"><block type="MoverACasillaAbajo" id="35"></block></statement><next><block type="MoverACasillaDerecha" id="36"><next><block type="Darsombrero" id="37"></block></next></block></next></block></statement></block></xml>',
});


@@ -633,24 +633,27 @@
 fre.',%0A%7D);%0A%0A
+/*%0A
 actividadTes
@@ -4278,16 +4278,19 @@
 k%3E%3C/xml%3E',%0A%7D);%0A%0A
+*/%0A

Prueba sobre tests de LaGranAventuraDelMarEncantado #125