This repository was archived by the owner on Oct 15, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ my $guard = qr/^
103103 (?<question>$question_prefix )\s ?
104104 (?<left_num>$factor_re *|\d +\/\d +)\s ?(?<left_unit>$keys )
105105 (?:\s
106- (?<connecting_word>in|(?:convert(?:ed)?)?\s ?to|vs|is|convert|per|=(?:[\s\? ]+)?|in\s to|(?:equals|is)?\s how\s many|(?:equals?(?:\s what(?:\s in)?)?|make)\s a?|\?\s ?=|are\s in \s a |(?:is\s what\s in)|(?:in to)|from)?\s ?
106+ (?<connecting_word>in|(?:convert(?:ed)?)?\s ?to|vs|is|convert|per|=(?:[\s\? ]+)?|in\s to|(?:equals|is)?\s how\s many|(?:equals?(?:\s what(?:\s in)?)?|make)\s a?|\?\s ?=|are\s (?:there)? \s ?in \s a? |(?:is\s what\s in)|(?:in to)|from)?\s ?
107107 (?<right_num>$factor_re *|\d +\/\d +)\s ?(?:of\s )?(?<right_unit>$keys )\s ?
108108 (?:conver(?:sion|ter)|calculator|equals(?:\s what)?)?[\? ]?
109109 )?
Original file line number Diff line number Diff line change @@ -711,6 +711,22 @@ ddg_goodie_test(
711711 physical_quantity => ' length'
712712 })
713713 ),
714+ ' how many metres are in 10 yards?' => test_zci(
715+ ' ' , structured_answer => make_answer({
716+ raw_input => ' 10' ,
717+ from_unit => ' yard' ,
718+ to_unit => ' meter' ,
719+ physical_quantity => ' length'
720+ })
721+ ),
722+ ' how many metres are there in a mile?' => test_zci(
723+ ' ' , structured_answer => make_answer({
724+ raw_input => ' 1' ,
725+ from_unit => ' mile' ,
726+ to_unit => ' meter' ,
727+ physical_quantity => ' length'
728+ })
729+ ),
714730 ' how many cm in a metre?' => test_zci(
715731 ' ' , structured_answer => make_answer({
716732 raw_input => ' 1' ,
You can’t perform that action at this time.
0 commit comments