mirror of
https://github.com/dkam/hsmr.git
synced 2025-12-28 16:54:52 +00:00
Use assert_false, rather than refute
This commit is contained in:
@@ -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")
|
||||||
refute odd_key.odd_parity?
|
assert_false odd_key.odd_parity?
|
||||||
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")
|
||||||
refute odd_component.odd_parity?
|
assert_false odd_component.odd_parity?
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_should_set_double_length_component_parity_to_odd
|
def test_should_set_double_length_component_parity_to_odd
|
||||||
|
|||||||
Reference in New Issue
Block a user