Sha256: 7cd74a8da613945c48cf872e47c387ff6215b3c9025c76fe275a3743edd66de1

Contents?: true

Size: 686 Bytes

Versions: 21

Compression:

Stored size: 686 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../test_helper')

## Bangladesh
class BDTest < Phonie::TestCase
  def test_local
    parse_test('+8801715379982', '880', '171', '5379982', 'Bangladesh', true)
    parse_test('+8801191573647', '880', '119', '1573647', 'Bangladesh', true)
    parse_test('+88021915736', '880', '2', '1915736', 'Bangladesh', false)
  end

  def test_with_default_country
    Phonie.configuration.default_country_code = '880'
    parse_test('1715379982', '880', '171', '5379982', 'Bangladesh', true)
    parse_test('1191573647', '880', '119', '1573647', 'Bangladesh', true)
    parse_test('21915736', '880', '2', '1915736', 'Bangladesh', false)
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
phonie-3.3.1 test/countries/bd_test.rb
phonie-3.2.2 test/countries/bd_test.rb
phonie-3.2.1 test/countries/bd_test.rb
phonie-3.2.0 test/countries/bd_test.rb
phonie-3.1.15 test/countries/bd_test.rb
phonie-3.1.14 test/countries/bd_test.rb
phonie-3.1.13 test/countries/bd_test.rb
phonie-3.1.12 test/countries/bd_test.rb
phonie-3.1.11 test/countries/bd_test.rb
phonie-3.1.10 test/countries/bd_test.rb
phonie-3.1.9 test/countries/bd_test.rb
phonie-3.1.8 test/countries/bd_test.rb
phonie-3.1.7 test/countries/bd_test.rb
phonie-3.1.6 test/countries/bd_test.rb
phonie-3.1.5 test/countries/bd_test.rb
phonie-3.1.4 test/countries/bd_test.rb
phonie-3.1.3 test/countries/bd_test.rb
phonie-3.1.2 test/countries/bd_test.rb
phonie-3.1.1 test/countries/bd_test.rb
phonie-3.1.0 test/countries/bd_test.rb