Sha256: 7d43a2f95fdc908411e736bb3da6711be3e48447740799ff16186e964afb7ca0
Contents?: true
Size: 409 Bytes
Versions: 3
Compression:
Stored size: 409 Bytes
Contents
# frozen_string_literal: true require "test_helper" class CNPJFormatterTest < Minitest::Test test "formats strings without separators" do number = "12345678901234" assert_equal "12.345.678/9012-34", CNPJ::Formatter.format(number) end test "removes any non-numeric characters" do number = "\n12$345[678/9012-34" assert_equal "12345678901234", CNPJ::Formatter.strip(number) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
cpf_cnpj-1.0.1 | test/cnpj/formatter_test.rb |
cpf_cnpj-1.0.0 | test/cnpj/formatter_test.rb |
cpf_cnpj-0.6.0 | test/cnpj/formatter_test.rb |