Sha256: 684a97c05d7876655d110140dac9c363fc94af0fe7f8d58edb1e9650f6d34faf

Contents?: true

Size: 679 Bytes

Versions: 10

Compression:

Stored size: 679 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::Phone.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

10 entries across 10 versions & 1 rubygems

Version Path
phonie-2.1.2 test/countries/bd_test.rb
phonie-2.1.1 test/countries/bd_test.rb
phonie-2.1.0 test/countries/bd_test.rb
phonie-2.0.2 test/countries/bd_test.rb
phonie-2.0.1 test/countries/bd_test.rb
phonie-2.0.0 test/countries/bd_test.rb
phonie-1.0.4 test/countries/bd_test.rb
phonie-1.0.3 test/countries/bd_test.rb
phonie-1.0.2 test/countries/bd_test.rb
phonie-1.0.1 test/countries/bd_test.rb