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

Add files via upload #192

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Add files via upload #192

wants to merge 5 commits into from

Conversation

PMIRUKULA
Copy link

On running my code, a text file would be generated in same location with output in it.

Copy link

@fulvius31 fulvius31 left a 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 ?

S23/pmirukula/Conversion.java Outdated Show resolved Hide resolved
S23/pmirukula/Conversion.java Outdated Show resolved Hide resolved
S23/pmirukula/Conversion.java Outdated Show resolved Hide resolved
@PMIRUKULA
Copy link
Author

@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.
You can just compile it in java compiler. read the output you want and then a file oceans.txt file would be generated with output in it.

@fulvius31
Copy link

Maybe it would be better to use JUnit tests so I can easily watch on them and test it.

S23/pmirukula/Conversion.java Show resolved Hide resolved
{
if(str.contains("I"))
{
str = str.replaceAll("I", " \0u131");
Copy link
Owner

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.

output = str.toLowerCase(new Locale(str_lang));
}
}
else if(str_lang.equals("ga-IE")|| str_lang.equals("ga") )
Copy link
Owner

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.

S23/pmirukula/Conversion.java Outdated Show resolved Hide resolved
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.

3 participants