Skip to content

Convenience Method to create a synonymmap object#16054

Merged
sarangan12 merged 3 commits intoAzure:mainfrom
sarangan12:Issue14664II
Jun 29, 2021
Merged

Convenience Method to create a synonymmap object#16054
sarangan12 merged 3 commits intoAzure:mainfrom
sarangan12:Issue14664II

Conversation

@sarangan12
Copy link
Contributor

This PR is related to Issue #14664. This PR creates a convenience method that creates a synonymmap object.

A similar method is implemented in Java and could be found here: https://github.com/Azure/azure-sdk-for-java/pull/20984/files

@xirzec Please review and approve

@ramya-rao-a FYI....

Copy link
Member

@xirzec xirzec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems useful!

I think there is a small bug with more than 2 lines in the file, though.

@@ -0,0 +1,2 @@
United States, United States of America => USA
Washington, Wash. => WA No newline at end of file
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a third line to this test to catch the "only replace a single \r" bug?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xirzec Added the empty case also now

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see it in the latest revision?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added an empty line at the end of the test file. It is not showing up in the diff.

sarangan12 and others added 2 commits June 28, 2021 16:09
Copy link
Member

@xirzec xirzec left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good now, but I don't see the tests you added. Maybe you forgot to push them?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants