Fakultas Ilmu Komputer UI

Commit 5dffbf04 authored by Muhammad Ilham Peruzzi's avatar Muhammad Ilham Peruzzi
Browse files

create 2 mutant in lists.html with ROR mutation operator

parent 7518a18e
......@@ -5,7 +5,7 @@
{% block form_action %}/lists/{{ list.id }}/add_item{% endblock %}
{% block table %}
{% if list.item_set.all|length == 0 %}
<!-- {% if list.item_set.all|length == 0 %}
<p>yey, waktunya berlibur</p>
{% elif list.item_set.all|length < 5 %}
<p>sibuk tapi santai</p>
......@@ -17,4 +17,35 @@
<tr><td>{{ forloop.counter }}: {{ item.text }}</td></tr>
{% endfor %}
</table>
{% endblock %} -->
<!--Mutant 1-->
{% if list.item_set.all|length != 0 %}
<p>yey, waktunya berlibur</p>
{% elif list.item_set.all|length < 5 %}
<p>sibuk tapi santai</p>
{% else %}
<p>oh tidak</p>
{% endif %}
<table id="id_list_table" class="table">
{% for item in list.item_set.all %}
<tr><td>{{ forloop.counter }}: {{ item.text }}</td></tr>
{% endfor %}
</table>
{% endblock %}
<!--Mutant 2-->
<!-- {% if list.item_set.all|length == 0 %}
<p>yey, waktunya berlibur</p>
{% elif list.item_set.all|length > 5 %}
<p>sibuk tapi santai</p>
{% else %}
<p>oh tidak</p>
{% endif %}
<table id="id_list_table" class="table">
{% for item in list.item_set.all %}
<tr><td>{{ forloop.counter }}: {{ item.text }}</td></tr>
{% endfor %}
</table>
{% endblock %}
-->
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment