spec/sjekksum/verhoeff_spec.rb in sjekksum-0.0.2 vs spec/sjekksum/verhoeff_spec.rb in sjekksum-0.0.3
- old
+ new
@@ -2,21 +2,25 @@
require "shared_implementation"
describe Sjekksum::Verhoeff do
success_spec_matrix = [
- [ 1, 5 ],
- [ 20, 4 ],
- [ 300, 0 ],
- [ 4000, 1 ],
- [ 55555, 7 ],
- [ 424242, 3 ],
- [ 142857, 0 ]
+ [ 1, 5 ],
+ [ 20, 4 ],
+ [ 300, 0 ],
+ [ 4000, 1 ],
+ [ 55555, 7 ],
+ [ 424242, 3 ],
+ [ 142857, 0 ],
+ [ "142857", 0 ],
+ [ "14.28-57", 0 ]
]
fail_spec_matrix = [
- [ 1, 1 ],
- [ 142857, 9 ]
+ [ 1, 1 ],
+ [ 142857, 9 ],
+ [ "142857", 9 ],
+ [ "14.28-57", 9 ]
]
it_behaves_like "a checksum implementation:", success_spec_matrix, fail_spec_matrix
end