mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fux bug
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package cn.hutool.core.text;
|
||||
|
||||
import cn.hutool.core.lang.Dict;
|
||||
import org.junit.Assert;
|
||||
import org.junit.Test;
|
||||
|
||||
public class NamingCaseTest {
|
||||
@Test
|
||||
public void toUnderlineCaseTest(){
|
||||
// https://github.com/dromara/hutool/issues/2070
|
||||
Dict.create()
|
||||
.set("customerNickV2", "customer_nick_v2")
|
||||
.forEach((key, value) -> Assert.assertEquals(value, NamingCase.toUnderlineCase(key)));
|
||||
}
|
||||
}
|
@@ -421,12 +421,6 @@ public class StrUtilTest {
|
||||
.set("HelloWorld_test", "hello_world_test")
|
||||
.set("H2", "H2")
|
||||
.set("H#case", "H#case")
|
||||
.forEach((key, value) -> Assert.assertEquals(value, StrUtil.toUnderlineCase(key)));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void toUnderLineCaseTest2() {
|
||||
Dict.create()
|
||||
.set("PNLabel", "PN_label")
|
||||
.forEach((key, value) -> Assert.assertEquals(value, StrUtil.toUnderlineCase(key)));
|
||||
}
|
||||
|
Reference in New Issue
Block a user