mirror of
https://github.com/dkam/hsmr.git
synced 2025-12-28 16:54:52 +00:00
Update tests
This commit is contained in:
12
Gemfile.lock
12
Gemfile.lock
@@ -1,3 +1,8 @@
|
|||||||
|
PATH
|
||||||
|
remote: .
|
||||||
|
specs:
|
||||||
|
hsmr (0.0.1)
|
||||||
|
|
||||||
GEM
|
GEM
|
||||||
remote: http://rubygems.org/
|
remote: http://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
@@ -5,14 +10,13 @@ GEM
|
|||||||
multi_json (~> 1.0)
|
multi_json (~> 1.0)
|
||||||
factory_girl (2.2.0)
|
factory_girl (2.2.0)
|
||||||
activesupport
|
activesupport
|
||||||
growl (1.0.3)
|
|
||||||
guard (0.8.8)
|
guard (0.8.8)
|
||||||
thor (~> 0.14.6)
|
thor (~> 0.14.6)
|
||||||
guard-test (0.4.1)
|
guard-test (0.4.1)
|
||||||
guard (>= 0.4)
|
guard (>= 0.4)
|
||||||
test-unit (~> 2.2)
|
test-unit (~> 2.2)
|
||||||
multi_json (1.0.3)
|
multi_json (1.0.3)
|
||||||
rb-fsevent (0.4.3.1)
|
rake (0.9.2.2)
|
||||||
test-unit (2.4.1)
|
test-unit (2.4.1)
|
||||||
thor (0.14.6)
|
thor (0.14.6)
|
||||||
|
|
||||||
@@ -21,6 +25,6 @@ PLATFORMS
|
|||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
factory_girl
|
factory_girl
|
||||||
growl
|
|
||||||
guard-test
|
guard-test
|
||||||
rb-fsevent
|
hsmr!
|
||||||
|
rake
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class TestHSMR < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test_should_detect_odd_parity_in_a_key
|
def test_should_detect_odd_parity_in_a_key
|
||||||
odd_key = HSMR::Key.new("41A2AC14A90C583741A2AC14A90C5837")
|
odd_key = HSMR::Key.new("41A2AC14A90C583741A2AC14A90C5837")
|
||||||
assert_false odd_key.odd_parity?
|
assert odd_key.odd_parity? == false
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_set_double_length_key_parity_to_odd
|
def test_should_set_double_length_key_parity_to_odd
|
||||||
@@ -93,7 +93,7 @@ class TestHSMR < Test::Unit::TestCase
|
|||||||
|
|
||||||
def test_should_detect_odd_parity_in_a_component
|
def test_should_detect_odd_parity_in_a_component
|
||||||
odd_component = HSMR::Component.new("41A2AC14A90C583741A2AC14A90C5837")
|
odd_component = HSMR::Component.new("41A2AC14A90C583741A2AC14A90C5837")
|
||||||
assert_false odd_component.odd_parity?
|
assert odd_component.odd_parity? == false
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_set_double_length_component_parity_to_odd
|
def test_should_set_double_length_component_parity_to_odd
|
||||||
|
|||||||
@@ -1,7 +1,2 @@
|
|||||||
require "test/unit"
|
require "test/unit"
|
||||||
#require "./lib/hsmr"
|
|
||||||
#require "./lib/hsmr/key"
|
|
||||||
#require "./lib/hsmr/component"
|
|
||||||
require "hsmr"
|
require "hsmr"
|
||||||
#require "hsmr/key"
|
|
||||||
#require "hsmr/component"
|
|
||||||
|
|||||||
Reference in New Issue
Block a user