From dac47617b37ccfb834cd73ce0ee725e1101de214 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 14 八月 2025 17:25:51 +0800
Subject: [PATCH] 2025.8.14 1. 动态溯源模块添加滑动平均异常计算(调试中)

---
 src/test/kotlin/com/flightfeather/uav/Test.kt |   38 ++++++++++++++++++++++++++++++++++++++
 1 files changed, 38 insertions(+), 0 deletions(-)

diff --git a/src/test/kotlin/com/flightfeather/uav/Test.kt b/src/test/kotlin/com/flightfeather/uav/Test.kt
index eca3219..11a50e1 100644
--- a/src/test/kotlin/com/flightfeather/uav/Test.kt
+++ b/src/test/kotlin/com/flightfeather/uav/Test.kt
@@ -163,4 +163,42 @@
 
         println("${period?.first};${period?.second};${period?.third}")
     }
+
+    @Test
+    fun foo18() {
+        println(-4.382398 in 4.0..Double.MAX_VALUE)
+    }
+
+    @Test
+    fun foo19() {
+        val timer = Timer(true)
+//        var running = true
+        val task = object : TimerTask() {
+            override fun run() {
+                println("task run")
+                println(Date())
+//                running = false
+            }
+        }
+        println(Date())
+        timer.schedule(task, 5000)
+        task.cancel()
+        timer.purge()
+
+        val task2 = object : TimerTask() {
+            override fun run() {
+                println("task2 run")
+                println(Date())
+//                running = false
+            }
+        }
+        timer.schedule(task2, 4000)
+//        while (running) {
+//
+//        }
+        val sc = Scanner(System.`in`)
+        while (sc.hasNext()) {
+            println(sc.nextLine())
+        }
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3