From 8955af1d914a23457fdb1ecca36e9de05d811a4c Mon Sep 17 00:00:00 2001 From: zhangsonglei Date: Mon, 29 Jan 2024 22:21:32 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=89=A9=E5=85=85=E8=B7=9D=E7=A6=BB?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/xiaomi/duckling/dimension/quantity/QuantityTest.scala | 2 +- .../xiaomi/duckling/dimension/temperature/TemperatureTest.scala | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/quantity/QuantityTest.scala b/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/quantity/QuantityTest.scala index 9e7b5109..88b875b7 100644 --- a/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/quantity/QuantityTest.scala +++ b/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/quantity/QuantityTest.scala @@ -33,7 +33,7 @@ class QuantityTest extends UnitSpec { options.copy(targets = Set(Quantity, Numeral), full = false) ) answers(0).token.value match { - case QuantityValue(1.0, "千米", _) => true shouldBe true + case QuantityValue(1.0, "千米", _, _, _) => true shouldBe true case _ => true shouldBe (false) } answers(1).token.value match { diff --git a/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/temperature/TemperatureTest.scala b/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/temperature/TemperatureTest.scala index 14d3c362..19b9dadb 100644 --- a/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/temperature/TemperatureTest.scala +++ b/duckling-fork-chinese/core/src/test/scala/com/xiaomi/duckling/dimension/temperature/TemperatureTest.scala @@ -34,7 +34,7 @@ class TemperatureTest extends UnitSpec { describe("TemperatureTest") { it("simple") { temperatureAnalyze("2十一°F").token.value match { - case QuantityValue(v, unit, dim) => + case QuantityValue(v, unit, dim, _, _) => (v, unit, dim) shouldBe ((21.0, "F", "温度")) } }