Skip to content

Commit

Permalink
#211 typos
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Aug 1, 2022
1 parent 369758b commit 485a827
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
4 changes: 1 addition & 3 deletions lib/pdd/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ def puzzles
puzzles << puzzle(lines.drop(idx + 1), m, idx)
end
rescue Error, ArgumentError => e
message = "#{@path}:#{idx + 1} #{e.message}"
message = "#{e.class} at #{@path}:#{idx + 1}: #{e.message}"
raise Error, message unless PDD.opts && PDD.opts['skip-errors']

PDD.log.warn message
end
end
puzzles
Expand Down
1 change: 0 additions & 1 deletion test/test_many.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def test_parsing
puzzle = list.first
puts "#{name}: \"#{puzzle.props[:body]}\""
next if name.start_with?('_')

assert_equal name, puzzle.props[:id]
end
end
Expand Down
4 changes: 0 additions & 4 deletions test_assets/puzzles/1-8d845d56

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
#
# @todo #42 This is a very
# long puzzle of many lines and not always
# Unicode symbols like this привет!
#
# well formatted...
#
#
#
4 changes: 4 additions & 0 deletions test_assets/puzzles/93-641fe341
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#
# @todo #93:30min This puzzle is very simple. It is indented right by more spaces than the other text.
# This is the other text here,
# which doesn't belong to the puzzle

0 comments on commit 485a827

Please sign in to comment.