-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add files via upload #192
base: master
Are you sure you want to change the base?
Add files via upload #192
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@PMIRUKULA It should be nice if you can provide me a way to test the code.
Did you try all the test cases ?
yes, I have tested all the cases. |
Maybe it would be better to use JUnit tests so I can easily watch on them and test it. |
S23/pmirukula/Conversion.java
Outdated
{ | ||
if(str.contains("I")) | ||
{ | ||
str = str.replaceAll("I", " \0u131"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you test this? Looks like a bug. And also a magic number.
S23/pmirukula/Conversion.java
Outdated
output = str.toLowerCase(new Locale(str_lang)); | ||
} | ||
} | ||
else if(str_lang.equals("ga-IE")|| str_lang.equals("ga") ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
BCP-47 codes can be very complicated. This is far from general enough.
On running my code, a text file would be generated in same location with output in it.