Skip to content

Commit

Permalink
feat: 扩充距离表达方式
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangsonglei committed Jan 29, 2024
1 parent 15cf1b3 commit 8955af1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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", "温度"))
}
}
Expand Down

0 comments on commit 8955af1

Please sign in to comment.