Skip to content

Add files via upload#192

Open
PMIRUKULA wants to merge 5 commits intokscanne:masterfrom
PMIRUKULA:feature
Open

Add files via upload#192
PMIRUKULA wants to merge 5 commits intokscanne:masterfrom
PMIRUKULA:feature

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 ?

@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.

{
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.

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