Sha256: 101b51d095b6575162728821b3fbb74fc5b5e27c8a28da3907889f11d9f853b8
Contents?: true
Size: 682 Bytes
Versions: 95
Compression:
Stored size: 682 Bytes
Contents
require 'pact_broker/versions/abbreviate_number' module PactBroker module Versions describe AbbreviateNumber do describe "#call" do TEST_CASES = [ ['202326572516dea6998a7f311fcaa161c0768fc2', '2023265'], ['1.2.3+areallyreallyreallylongexplanation', '1.2.3+areallyreallyreallylongexplanation'], ['2516dea6998a7f', '2516dea6998a7f'], ['1.2.3+202326572516dea6998a7f311fcaa161c0768fc2', '1.2.3+2023265'] ] TEST_CASES.each do |(input, output)| it "shortens #{input} to #{output}" do expect(AbbreviateNumber.call(input)).to eq output end end end end end end
Version data entries
95 entries across 95 versions & 1 rubygems