* blah. rex exceptions

git-svn-id: file:///home/svn/incoming/trunk@3559 4d416f70-5f16-0410-b530-b9f4589650da
unstable
bmc 2006-03-08 17:25:40 +00:00
parent dde940e876
commit 9d54b40c63
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ $:.unshift(File.join(File.dirname(__FILE__), '..'))
require 'test/unit'
require 'rex/text'
require 'rex/exceptions'
class Rex::Text::UnitTest < Test::Unit::TestCase
def test_uri_encode
@ -116,7 +116,7 @@ class Rex::Text::UnitTest < Test::Unit::TestCase
assert_equal('%u0102%uff00', Rex::Text.to_hex(str, '%u', 2), 'to_hex with chunk size of 2')
# to_hex, without providing enouigh data to chunk on a given size
assert_raises(RuntimeError){ Rex::Text.to_hex('a', '', 2) }
assert_raises(Rex::RuntimeError){ Rex::Text.to_hex('a', '', 2) }
assert_equal("\"\\x01\\x02\\xff\\x00\"\n", Rex::Text.to_ruby(str), 'to_ruby')
assert_equal("\"\\x01\\x02\\xff\\x00\";\n", Rex::Text.to_perl(str), 'to_perl')