pg-libphonenumber/debian/patches/0001-Increase-the-length-of...

45 lines
1.8 KiB
Diff

From 2f2046aac124a8dd4f28131980d72015ad8dda71 Mon Sep 17 00:00:00 2001
From: jordi fita mas <jordi@tandem.blog>
Date: Tue, 24 Jan 2023 14:17:19 +0100
Subject: [PATCH] Increase the length of the test phone number
Apparently, now libphonenumber does accept 555-555-55555555555 without
complain, so the expected output is wrong and to trigger the original
error message we need to add an extra 5 there.
---
expected/regression.out | 4 ++--
sql/regression.sql | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/expected/regression.out b/expected/regression.out
index 474df36..c3cf363 100644
--- a/expected/regression.out
+++ b/expected/regression.out
@@ -12,8 +12,8 @@ select parse_packed_phone_number('555-555-5555555555', 'US');
ERROR: phone number '+1 5555555555555555' is too long
DETAIL: National number is too long
--Produces an error from libphonenumber
-select parse_packed_phone_number('555-555-55555555555', 'US');
-ERROR: unable to parse '555-555-55555555555' as a phone number
+select parse_packed_phone_number('555-555-555555555555', 'US');
+ERROR: unable to parse '555-555-555555555555' as a phone number
DETAIL: National number is too long
-- Do we get correct country codes?
-- TODO: expand.
diff --git a/sql/regression.sql b/sql/regression.sql
index 221b4c2..8496e7d 100644
--- a/sql/regression.sql
+++ b/sql/regression.sql
@@ -6,7 +6,7 @@ select parse_packed_phone_number('555-555-5555', 'US');
--Produces an error in pg-libphonenumber's code
select parse_packed_phone_number('555-555-5555555555', 'US');
--Produces an error from libphonenumber
-select parse_packed_phone_number('555-555-55555555555', 'US');
+select parse_packed_phone_number('555-555-555555555555', 'US');
-- Do we get correct country codes?
-- TODO: expand.
--
2.35.3