Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
PMPL
Collection of Practice
2019
1606823475-practice
Commits
5dffbf04
Commit
5dffbf04
authored
Nov 05, 2019
by
Muhammad Ilham Peruzzi
Browse files
create 2 mutant in lists.html with ROR mutation operator
parent
7518a18e
Changes
1
Hide whitespace changes
Inline
Side-by-side
lists/templates/list.html
View file @
5dffbf04
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment