Sha256: 90a4a210f66b9c51ca5695ff204cf8ab5f1ea6ba031467eeb00908e9fbdf79dc
Contents?: true
Size: 595 Bytes
Versions: 6
Compression:
Stored size: 595 Bytes
Contents
require "spec_helper" require "shared_implementation" describe Sjekksum::Luhn do success_spec_matrix = [ [ 1, 8 ], [ 20, 8 ], [ 300, 4 ], [ 4000, 6 ], [ 55555, 7 ], [ 424242, 6 ], [ 7992739871, 3 ], [ "7992739871", 3 ], [ "799.273-98 71", 3 ] ] fail_spec_matrix = [ [ 1, 1 ], [ 7992739871, 9 ], [ "7992739871", 9 ], [ "799.273-98 71", 9 ] ] it_behaves_like "a checksum implementation:", success_spec_matrix, fail_spec_matrix end
Version data entries
6 entries across 6 versions & 1 rubygems