Skip to content

Commit

Permalink
Bad test
Browse files Browse the repository at this point in the history
  • Loading branch information
enebo committed Feb 10, 2017
1 parent bc7aa50 commit e5be290
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/jruby/test_string_printf.rb
@@ -1,3 +1,4 @@
# coding: utf-8
require 'test/unit'

class TestStringPrintf < Test::Unit::TestCase
Expand All @@ -21,7 +22,7 @@ def test_binary
assert_equal("+101", "%+b" % 5)
assert_equal("101 ", "%-5b" % 5)
assert_equal("0", "%b" % nil)
assert_raises(ArgumentError) {"%b" % {'A' => 1}}
assert_raises(TypeError) {"%b" % {'A' => 1}}
assert_raises(ArgumentError) {"%b" % "a"}
assert_raises(TypeError) {"%b" % true}
assert_raises(TypeError) {"%b" % [[1, 2]]}
Expand Down

0 comments on commit e5be290

Please sign in to comment.