duckling/Duckling/Numeral
Julien Odent 3b64603d81 Don't allow 0 as fraction denominator
Summary:
"1/0" was returning "null" -- this is not a valid fraction.
Now "1/0" returns 2 Numeral.

Reviewed By: niteria

Differential Revision: D5037579

fbshipit-source-id: 70fa4c9
2017-05-11 12:04:20 -07:00
..
AR Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
CS CS: Setup + basic Numeral 2017-05-11 09:49:27 -07:00
DA Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
DE Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
EN Added English fractional Numeral rule (ex: "3/4", "1/2", "5/7") 2017-05-10 07:04:16 -07:00
ES Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
ET Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
FR using hashmap lookups 2017-04-05 12:20:10 -07:00
GA Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
HE Setup + Numeral 2017-04-24 06:49:40 -07:00
HR Setup + Numeral 2017-04-26 09:19:26 -07:00
ID Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
IT Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
JA Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
KO Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
MY Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
NB NB: Bringing latest changes 2017-04-28 08:04:22 -07:00
NL Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
PL Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
PT Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
RO Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
RU Update RU Rules HashMap lookups update 2017-04-06 15:49:17 -07:00
SV Using hashmap look up instead of 'case of' 2017-04-11 11:04:20 -07:00
TR Refactor of Duckling.Numeral.TR to hashmap lookup 2017-04-11 09:34:23 -07:00
UK Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
VI Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
ZH Move tests to tests and exes to exe 2017-03-27 16:04:24 -07:00
Helpers.hs Don't allow 0 as fraction denominator 2017-05-11 12:04:20 -07:00
Types.hs Rename Number to Numeral 2017-03-16 13:49:16 -07:00