From ffde22395c969661db497b6cc0ae523e993851f4 Mon Sep 17 00:00:00 2001 From: Al Date: Wed, 10 Feb 2016 08:30:53 -0500 Subject: [PATCH] [numex] Adding test cases where stopword should not get swallowed into the numeric expression --- test/test_numex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_numex.c b/test/test_numex.c index 96825ce8..22775964 100644 --- a/test/test_numex.c +++ b/test/test_numex.c @@ -25,6 +25,8 @@ TEST test_numeric_expressions(void) { // English numbers CHECK_CALL(test_numex("five hundred ninety-three", "593", "en")); CHECK_CALL(test_numex("five hundred and ninety-three", "593", "en")); + CHECK_CALL(test_numex("fourth and a", "4th and a", "en")); + CHECK_CALL(test_numex("foo and bar", "foo and bar", "en")); CHECK_CALL(test_numex("thirty west twenty-sixth street", "30 west 26th street", "en")); CHECK_CALL(test_numex("five and sixth", "5 and 6th", "en")); CHECK_CALL(test_numex("three hundred thousand nineteenhundred and forty-fifth", "301945th", "en"));