File tree Expand file tree Collapse file tree
main/resources/rules/length
test/kotlin/xyz/javecs/tools/text2expr/test/kotlin/unit Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11x=P2:数
2- SF:キロメートル|キロ
3- SF:マイル
2+ SF:キロメートル|キロ|"km"
3+ SF:マイル|"mile"
44
55x*0.621371192
Original file line number Diff line number Diff line change 11x=P2:数
2- SF:マイル
3- SF:キロメートル|キロ
2+ SF:マイル|"mile"
3+ SF:キロメートル|キロ|"km"
44
55x*1.60934
Original file line number Diff line number Diff line change @@ -10,9 +10,13 @@ class LengthTest {
1010
1111 @Test fun mileToKilometer () {
1212 assertEquals(" 151.27796" , text2Expr.eval(" 94マイルは何キロメートルですか?" ))
13+ assertEquals(" 151.27796" , text2Expr.eval(" 94マイルは何キロですか?" ))
14+ assertEquals(" 151.27796" , text2Expr.eval(" 94mileは何kmですか?" ))
1315 }
1416
1517 @Test fun kilometerToMile () {
1618 assertEquals(" 1.864113576" , text2Expr.eval(" 3キロメートルは、何マイルですか?" ))
19+ assertEquals(" 1.864113576" , text2Expr.eval(" 3キロは、何マイルですか?" ))
20+ assertEquals(" 1.864113576" , text2Expr.eval(" 3kmは、何mileですか?" ))
1721 }
1822}
You can’t perform that action at this time.
0 commit comments