Skip to content

Add files via upload#192

Open
PMIRUKULA wants to merge 5 commits into
kscanne:masterfrom
PMIRUKULA:feature
Open

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

Conversation

@PMIRUKULA

Copy link
Copy Markdown

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

Comment thread S23/pmirukula/Conversion.java
Comment thread S23/pmirukula/Conversion.java Outdated

@fulvius31 fulvius31 left a comment

Copy link
Copy Markdown

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 ?

Comment thread S23/pmirukula/Conversion.java Outdated
Comment thread S23/pmirukula/Conversion.java Outdated
Comment thread S23/pmirukula/Conversion.java Outdated
@PMIRUKULA

Copy link
Copy Markdown
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
Copy Markdown

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

Comment thread S23/pmirukula/Conversion.java
Comment thread S23/pmirukula/Conversion.java Outdated
{
if(str.contains("I"))
{
str = str.replaceAll("I", " \0u131");

Copy link
Copy Markdown
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.

Comment thread S23/pmirukula/Conversion.java Outdated
output = str.toLowerCase(new Locale(str_lang));
}
}
else if(str_lang.equals("ga-IE")|| str_lang.equals("ga") )

Copy link
Copy Markdown
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.

Comment thread S23/pmirukula/Conversion.java Outdated
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