From dee9daee86f02e4f0f7a5b38d141a0a34843c908 Mon Sep 17 00:00:00 2001 From: Shekhar Gulati Date: Fri, 30 Jun 2017 11:19:08 +0530 Subject: [PATCH] Resolved #61 This bug was not valid --- src/test/java/strman/StrmanTests.java | 31 +++++++++++++++------------ 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/src/test/java/strman/StrmanTests.java b/src/test/java/strman/StrmanTests.java index 7945b20..304d2e9 100644 --- a/src/test/java/strman/StrmanTests.java +++ b/src/test/java/strman/StrmanTests.java @@ -26,7 +26,11 @@ package strman; -import java.util.*; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import java.util.Optional; import org.junit.Ignore; import org.junit.Test; @@ -825,6 +829,18 @@ public class StrmanTests { Arrays.stream(fixture).forEach(el -> assertThat(String.format("toSnakeCase(%s) should be de_camelize", el), toSnakeCase(el), equalTo("de_camelize"))); } + @Test + public void snakeCase_shouldConvertAStringToSnakecase() throws Exception { + String[] input = { + "Foo Bar", + "fooBar" + }; + + Arrays.stream(input).forEach(el -> + assertThat(String.format("%s should be foo_bar", el), toSnakeCase(el), is(equalTo("foo_bar")))); + + } + @Test public void unequal_shouldTestInequalityOfStrings() throws Exception { assertThat(unequal("a", "b"), equalTo(true)); @@ -876,19 +892,6 @@ public class StrmanTests { } - @Ignore - public void snakeCase_shouldConvertAStringToSnakecase() throws Exception { - String[] input = { - "Foo Bar", - "fooBar", - "--FOO-BAR--" - }; - - Arrays.stream(input).forEach(el -> - assertThat(String.format("%s should be foo_bar", el), toSnakeCase(el), is(equalTo("foo_bar")))); - - } - @Test public void join_shouldJoinArrayOfStringIntoASingleString() throws Exception { String[] strings = {