delete:删除无用代码

This commit is contained in:
萌狼蓝天 2024-10-23 11:13:00 +08:00
parent d573fb776f
commit b87db3cef4

View File

@ -15,36 +15,4 @@ class HarmonyLifeServerApplicationTests {
void testEmailSentUtil() { void testEmailSentUtil() {
utilEmailSent.sendCode("2952458479@qq.com"); utilEmailSent.sendCode("2952458479@qq.com");
} }
@Test
void test(){
// 创建 BigDecimal 对象
BigDecimal a = new BigDecimal("3");
BigDecimal b = new BigDecimal("0.1");
// 执行乘法运算
BigDecimal result = a.multiply(b);
// 输出结果
System.out.println("Result: " + result);
// 比较结果是否等于 0.3
BigDecimal target = new BigDecimal("0.3");
boolean isEqual = result.compareTo(target) == 0;
System.out.println("Is the result equal to 0.3? " + isEqual);
}
@Test
void Test2(){
int a = 10;
Scanner input = new Scanner(System.in);
int num = input.nextInt(); //输入15
System.out.println(num + a); // 15+10
short s =1 +2;
char c =59;
// float f =1.0 +1;
}
} }