Commit Graph

15 Commits (master)

Author SHA1 Message Date
Rob Emery 0cffa6161e POTUS: Triggering is way too keen (#3938)
* POTUS: Adding failing test for overtrigger

* POTUS: the previous || $prez_count meant that it defaulted to the current president if it didn't recognise the number; hence why it was showing so many false positives

* POTUS: Now with stricter handling on the $num we can trust the validation later on to keep us safe from overtriggering

* POTUS: basic queries that really should work!

* POTUS: Switching to using a guard regex to match things rather than using replacements

* POTUS: Guard regex now protects the query space. and "was" is used to imply the previous president (currently obama)

* POTUS: switched to query_lc and implementing both a guard regex and a replacement for the triggers so that the code below behaves as if it is remainder =>, except that this doesn't erroneously replace "president-elect of the us" with ""

* POTUS: We don't need $rem
2017-03-06 23:39:09 -05:00
Gautam krishna.R 50798f2506 added tests 2017-02-09 17:47:13 +05:30
Rasika Pohankar 51dafeaa31 Remove periods from titles, subtitles and plaintext responses (#3569)
* Remove periods from titles, subtitles and plaintext responses

* Update test files

* Remove concatenation

* Remove repeated tests from Cusip test file
2016-09-06 11:15:19 +01:00
Ben Moon 83b9bbd6b7 Fix newline at end of file 2016-05-16 14:19:39 +01:00
Ben Moon 5f85cf4121 Update Goodies to use Test::Deep
* Ensure Test::Deep is imported.

* Replace '-ANY-' with ignore()

* Replace regexes with re(...)
2016-05-16 14:07:57 +01:00
Rob Emery 348df8e526 POTUS: Flipping out to text template (#3053)
* POTUS: Flipping out to text template

* POTUS: Tests should be calling `build_test` :)

* POTUS: Test refactor
2016-05-14 23:32:11 +01:00
Rob Emery aba6abf7f2 POTUS: adding failing tests for vice president queries (#1863) 2016-04-24 20:27:37 +01:00
Matt Miller 19e212ed67 POTUS: add structured answer. 2014-11-15 21:32:59 +02:00
Eric Johnson 9c29b27338 Added tests for example queries which are not currently tested.
Conflicts:

	t/TimezoneConverter.t
2014-02-10 21:36:14 +00:00
Dylan Lloyd 668bff87b8 use ordsuf in POTUS to <sup> ordsuf 2013-08-13 15:03:07 -04:00
Dylan Lloyd 2d7bcfbc4b added module for comprehensive natural language support 2013-07-24 15:05:53 -04:00
John-Peter Etcheber a49d65d103 Added support for natural language queries from 1-20.
Added 3 new tests to test file.
2013-07-23 20:26:35 -07:00
John-Peter Etcheber 4272a6f92e Update POTUS.t
Getting update from branch pr/206
2013-07-23 19:04:39 -07:00
John-Peter Etcheber 2d2ad68a96 Update POTUS.t
Fixed test to account for linked HTML output.
2013-07-22 23:01:05 -07:00
John-Peter Etcheber 9b6da3cda6 Create POTUS.t
Initial test file for goodie.
2013-07-19 19:46:17 -07:00