Sha256: 24e24f1e8fe69927947d1bbf78e54f620a63d9f27b621778d0090d970bdc69bd

Contents?: true

Size: 295 Bytes

Versions: 5

Compression:

Stored size: 295 Bytes

Contents

# frozen_string_literal: true

require "test_helper"

class CNPJGeneratorTest < Minitest::Test
  test "generates valid numbers" do
    10.times { assert CNPJ.valid?(CNPJ.generate) }
  end

  test "generates random numbers" do
    10.times { refute_equal CNPJ.generate, CNPJ.generate }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cpf_cnpj-1.0.1 test/cnpj/generator_test.rb
cpf_cnpj-1.0.0 test/cnpj/generator_test.rb
cpf_cnpj-0.6.0 test/cnpj/generator_test.rb
cpf_cnpj-0.5.0 test/unit/cnpj/generator_test.rb
cpf_cnpj-0.4.1 test/unit/cnpj/generator_test.rb