mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-03 20:27:58 +08:00
fix test
This commit is contained in:
parent
2b824561ea
commit
5c6e548db2
@ -34,6 +34,15 @@ public class NumberChineseFormatterTest {
|
|||||||
Assert.assertEquals("一十", f1);
|
Assert.assertEquals("一十", f1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
public void formatTest3() {
|
||||||
|
String f1 = NumberChineseFormatter.format(50008000, false, false);
|
||||||
|
Assert.assertEquals("五千万零八千", f1);
|
||||||
|
|
||||||
|
f1 = NumberChineseFormatter.format(100350089, false, false);
|
||||||
|
Assert.assertEquals("一亿零三十五万零八十九\"", f1);
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void formatTraditionalTest() {
|
public void formatTraditionalTest() {
|
||||||
String f1 = NumberChineseFormatter.format(10889.72356, true);
|
String f1 = NumberChineseFormatter.format(10889.72356, true);
|
||||||
|
@ -9,13 +9,13 @@ import java.awt.Font;
|
|||||||
import java.awt.Rectangle;
|
import java.awt.Rectangle;
|
||||||
|
|
||||||
public class ImgTest {
|
public class ImgTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
@Ignore
|
||||||
public void cutTest1() {
|
public void cutTest1() {
|
||||||
Img.from(FileUtil.file("e:/pic/face.jpg")).cut(0, 0, 200).write(FileUtil.file("e:/pic/face_radis.png"));
|
Img.from(FileUtil.file("e:/pic/face.jpg")).cut(0, 0, 200).write(FileUtil.file("e:/pic/face_radis.png"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
@Ignore
|
||||||
public void compressTest() {
|
public void compressTest() {
|
||||||
@ -28,7 +28,7 @@ public class ImgTest {
|
|||||||
final Img from = Img.from(FileUtil.file("d:/test/81898311-001d6100-95eb-11ea-83c2-a14d7b1010bd.png"));
|
final Img from = Img.from(FileUtil.file("d:/test/81898311-001d6100-95eb-11ea-83c2-a14d7b1010bd.png"));
|
||||||
ImgUtil.write(from.getImg(), FileUtil.file("d:/test/dest.jpg"));
|
ImgUtil.write(from.getImg(), FileUtil.file("d:/test/dest.jpg"));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@Ignore
|
@Ignore
|
||||||
public void roundTest() {
|
public void roundTest() {
|
||||||
|
Loading…
Reference in New Issue
Block a user