Skip to content

Commit

Permalink
comment out debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
acme committed Aug 25, 2011
1 parent f7dbefb commit 4d9c0b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/simple.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ def test_simple_1
next if line.length == 0
if line.match(/^# ?(.+)/)
name = $1
puts "name is #{name}"
# puts "name is #{name}"
next
end
puts "[#{line}]"
# puts "[#{line}]"
vals = line.split(/\s+/).collect! {|x|
if x.match(/^undef$/)
nil
Expand All @@ -71,7 +71,7 @@ def test_simple_1
x
end
}
puts vals.inspect
# puts vals.inspect
oldpage = Data::Page.new(vals[0].to_i, vals[1].to_i, vals[2].to_i)
self._check(oldpage, name, vals);
newpage = Data::Page.new()
Expand All @@ -95,7 +95,7 @@ def test_simple_1
assert_equal(page.entries_on_this_page, 10)
end
def _check(page, name, vals)
puts "check #{page.total_entries} total_entries, #{page.entries_per_page} entries_per_page, #{page.current_page} current_page"
# puts "check #{page.total_entries} total_entries, #{page.entries_per_page} entries_per_page, #{page.current_page} current_page"
assert_instance_of(Data::Page, page)
assert_equal(page.first_page, vals[3])
assert_equal(page.last_page, vals[4])
Expand Down

0 comments on commit 4d9c0b0

Please sign in to comment.