Permalink
Browse files

+ polish numbers

  • Loading branch information...
1 parent d418f9f commit 85ca955405948a6a18fc3fd4df8134a2b12b02bc @floere committed Jan 20, 2011
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/phony/countries/all_other.rb
  2. +1 −1 spec/lib/phony_spec.rb
@@ -80,8 +80,8 @@ def self.mapping
'47' => fixed(4, # Norway
:local_format => [4]
),
- '48' => fixed(2, # Poland (Republic of)
- :local_format => [1, 3, 3] # Approximation. Correct would be 48-xxx-xxx-xxx
+ '48' => fixed(3, # Poland (Republic of)
+ :local_format => [3, 3] # Although the NDCs are 2 digits, the representation is 3 digits.
),
'49' => Countries::Germany,
View
@@ -64,7 +64,7 @@
Phony.split('51841234123').should == ['51', '84', '1234', '123'] # Cuzco, best effort
end
it "should handle polish numbers" do
- Phony.split('48121123123').should == ['48', '12', '1', '123', '123']
+ Phony.split('48123123123').should == ['48', '123', '123', '123']
end
it 'handles romanian numbers' do
Phony.split('40211231234').should == ['40', '21', '123', '1234'] # Bucureşti

0 comments on commit 85ca955

Please sign in to comment.