Skip to content

Commit

Permalink
#11 extra test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 28, 2023
1 parent a0ef899 commit 17960d3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_loog.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ def test_buffering
b.info('Hello, world!')
assert b.to_s.include?('Hello')
end

def test_quiet_buffering
b = Loog::Buffer.new
msg = 'Hey, друг!'
b.info(msg)
assert_equal(b.to_s, "#{msg}\n")
end
end

0 comments on commit 17960d3

Please sign in to comment.