From 5353617c7b2135ab00f98d8e05b2f8dfb2e096ed Mon Sep 17 00:00:00 2001
From: riku <risaku@163.com>
Date: 星期三, 30 六月 2021 09:55:40 +0800
Subject: [PATCH] 1. 新增污染权重分析功能

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

diff --git a/src/test/kotlin/com/flightfeather/uav/Test.kt b/src/test/kotlin/com/flightfeather/uav/Test.kt
index 9ab8a21..456ec0c 100644
--- a/src/test/kotlin/com/flightfeather/uav/Test.kt
+++ b/src/test/kotlin/com/flightfeather/uav/Test.kt
@@ -1,5 +1,7 @@
 package com.flightfeather.uav
 
+import com.flightfeather.uav.common.utils.FileExchange
+import com.flightfeather.uav.domain.entity.Company
 import com.flightfeather.uav.socket.bean.DataUnit
 import com.flightfeather.uav.socket.decoder.AirDataDecoder
 import com.flightfeather.uav.socket.eunm.AirCommandUnit
@@ -41,4 +43,27 @@
         out.flush()
         out.close()
     }
+
+    @Test
+    fun dataChange() {
+        FileExchange().doTask2()
+    }
+
+    @Test
+    fun listCopy() {
+        val l1 = listOf(Company().apply { ciGuid = "a" }, Company().apply { ciGuid = "b" }, Company().apply { ciGuid = "c" })
+        val l2 = mutableListOf<Company>().apply { addAll(l1) }
+        l2[1].ciGuid = "d"
+        println(l1)
+        println(l2)
+    }
+
+    @Test
+    fun average() {
+        for (i in 0..2) {
+            println(i)
+        }
+        val list = listOf(1, 2, 3, 4, 5, 0)
+        println(list.average())
+    }
 }
\ No newline at end of file

--
Gitblit v1.9.3