Sha256: 5667eea45ce4750337e96f7d01c1a01e033bdf1cdb355c91c00f28ad53c3b183
Contents?: true
Size: 407 Bytes
Versions: 2
Compression:
Stored size: 407 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cpf_cnpj-0.5.0 | test/unit/cnpj/formatter_test.rb |
cpf_cnpj-0.4.1 | test/unit/cnpj/formatter_test.rb |