Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

National trunk prefix #77

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

National trunk prefix #77

wants to merge 2 commits into from

Conversation

direc85
Copy link
Collaborator

@direc85 direc85 commented Jul 10, 2024

Test cases for #76 and #68 which seem to be the same issue.

@direc85
Copy link
Collaborator Author

direc85 commented Jul 10, 2024

Condensed test results:

it3 at src/formatter.rs:466:48:
 called `Result::unwrap_err()` on an `Ok` value

it2 at src/formatter.rs:451:9:
  left: "+39 391 2312312"
 right: "+39 12312312"

ru2 at src/formatter.rs:420:9:
  left: "+78005553535"
 right: "+7005553535"

be1 at src/formatter.rs:386:9:
  left: "+375800111111"
 right: "+3750111111"

ru1 at src/formatter.rs:409:9:
  left: "+78005553535"
 right: "+7005553535"

Which interestingly means:

  • parser::parse(Some(country::RU), "+78005553535") passes
  • parser::parse(None, "+78005553535") fails

@paulll
Copy link

paulll commented Jul 10, 2024

Which interestingly means:

  • parser::parse(Some(country::RU), "+78005553535") passes
  • parser::parse(None, "+78005553535") fails

parser::parse(Some(country::RU), "+78005553535") is ru1 test case
parser::parse(None, "+78005553535") is ru3 which passes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants