mirror of
https://github.com/shekhargulati/strman-java.git
synced 2026-10-13 00:53:56 +00:00
Fixed #10. Added support for isUpperCase function
This commit is contained in:
@@ -409,4 +409,17 @@ public class StrmanTest {
|
||||
assertThat(isLowerCase("Foo"), equalTo(false));
|
||||
assertThat(isLowerCase("foobarfooA"), equalTo(false));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isUpperCase_shouldBeTrueWhenStringIsUpperCase() throws Exception {
|
||||
assertThat(isUpperCase(""), equalTo(true));
|
||||
assertThat(isUpperCase("FOO"), equalTo(true));
|
||||
assertThat(isUpperCase("FOOBARFOO"), equalTo(true));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void isUpperCase_shouldBeFalseWhenStringIsNotUpperCase() throws Exception {
|
||||
assertThat(isUpperCase("Foo"), equalTo(false));
|
||||
assertThat(isUpperCase("foobarfooA"), equalTo(false));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user