File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
< div id ="tests ">
2
2
<% if @tests . nil? %>
3
- < pre > <%= @grading_output . output %> </ pre >
3
+ <% if @grading_output . output %>
4
+ < h4 > Output:</ h4 >
5
+ < pre > <%= @grading_output . output %> </ pre >
6
+ <% end %>
7
+ <% if @grading_output . errors %>
8
+ < h4 > Errors:</ h4 >
9
+ <% if @grading_output . errors . is_a? String %>
10
+ < pre > <%= @grading_output . errors %> </ pre >
11
+ <% else %>
12
+ < ul >
13
+ <% @grading_output . errors . each do |e | %>
14
+ < li > < pre > <%= e %> </ pre > </ li >
15
+ <% end %>
16
+ </ ul >
17
+ <% end %>
18
+ <% end %>
19
+ <% if @grading_output . errors . blank? && @grading_output . output . blank? %>
20
+ < h4 > No output or errors received at all. Please contact a professor.</ h4 >
21
+ <% end %>
4
22
<% else %>
5
23
<% @tests . each_with_index do |t , i | %>
6
24
<% if t [ :passed ]
You can’t perform that action at this time.
0 commit comments