Sha256: 1b85d23626e174b9e86e0e8aec44d0d62ddccdbb47c7080bc8875b1f6b17ea63

Contents?: true

Size: 387 Bytes

Versions: 43

Compression:

Stored size: 387 Bytes

Contents

#!/usr/bin/env ruby

$:.unshift(File.join(File.dirname(__FILE__), '..', '..'))

require 'test/unit'
require 'rex/text'
require 'rex/arch/sparc'

class Rex::Arch::Sparc::UnitTest < ::Test::Unit::TestCase

	Klass = Rex::Arch::Sparc

	def test_set
		assert_equal("\x88\x10\x20\x02", Klass.set(0x2, 'g4'))
		assert_equal("\x09\x00\x00\x08\x88\x11\x22\x22", Klass.set(0x2222, 'g4'))
	end

end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
librex-0.0.65 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.63 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.54 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.53 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.52 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.51 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.50 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.49 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.48 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.47 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.46 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.44 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.43 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.42 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.41 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.40 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.39 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.38 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.37 lib/rex/arch/sparc.rb.ut.rb
librex-0.0.36 lib/rex/arch/sparc.rb.ut.rb