2005-12-17 06:46:23 +00:00
|
|
|
#!/usr/bin/env ruby
|
2005-10-02 19:23:20 +00:00
|
|
|
|
|
|
|
$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))
|
|
|
|
|
|
|
|
require 'test/unit'
|
|
|
|
require 'rex/nop/opty2'
|
|
|
|
|
|
|
|
class Rex::Nop::Opty2::UnitTest < Test::Unit::TestCase
|
|
|
|
|
|
|
|
Klass = Rex::Nop::Opty2
|
|
|
|
|
|
|
|
# TODO: machine test
|
|
|
|
def test_opty2
|
|
|
|
o = Klass.new
|
|
|
|
|
|
|
|
100.times {
|
|
|
|
s = o.generate_sled(100)
|
|
|
|
|
|
|
|
assert_equal(s.length, 100)
|
|
|
|
}
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|