Skip to content

Commit 641fdf9

Browse files
author
Ben Lerner
committedSep 4, 2024·
typos
1 parent e18b178 commit 641fdf9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎app/views/grades/_show_simple_list.html.erb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div id="tests">
2-
<% if @tests.nil %>
2+
<% if @tests.nil? %>
33
<pre><%= @grading_output.output %></pre>
44
<% else %>
55
<% @tests.each_with_index do |t, i| %>

‎lib/json_parser.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def initialize(json, filename=nil)
88
@json = json
99
@test_count = json['tests']&.count
1010
@output = json['output']
11-
@tests = json['tests']&.map.with_index do |t, num|
11+
@tests = json['tests']&.map&.with_index do |t, num|
1212
t = t.clone
1313
weight = t.delete('weight') || t.delete('max_score') || t.delete('max-score')
1414
score = t.delete('score')

0 commit comments

Comments
 (0)
Please sign in to comment.