From b87db3cef498ad8762757f3db51083fced405d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=90=8C=E7=8B=BC=E8=93=9D=E5=A4=A9?= Date: Wed, 23 Oct 2024 11:13:00 +0800 Subject: [PATCH] =?UTF-8?q?delete=EF=BC=9A=E5=88=A0=E9=99=A4=E6=97=A0?= =?UTF-8?q?=E7=94=A8=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HarmonyLifeServerApplicationTests.java | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/src/test/java/com/guaiguailang/harmony/HarmonyLifeServerApplicationTests.java b/src/test/java/com/guaiguailang/harmony/HarmonyLifeServerApplicationTests.java index 4c3cf23..cc22269 100644 --- a/src/test/java/com/guaiguailang/harmony/HarmonyLifeServerApplicationTests.java +++ b/src/test/java/com/guaiguailang/harmony/HarmonyLifeServerApplicationTests.java @@ -15,36 +15,4 @@ class HarmonyLifeServerApplicationTests { void testEmailSentUtil() { 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; - - - } - - }