Commit Graph

6503 Commits (c763a1958afd82180bf82bf5fcfb12f77111911e)

Author SHA1 Message Date
Rob Emery c763a1958a Conversions: Increasing accuracy of the definition of inch, foot, yard for #1847 2016-01-09 11:23:34 +00:00
Rob Emery 46c6b1e566 Conversions: Adding tests for https://github.com/duckduckgo/zeroclickinfo-goodies/issues/1847 2016-01-09 11:22:25 +00:00
Rob Emery 02a9ce86ee Conversions: Expanding the unit bodging for Ounces (#1767); I incorrectly diagnosed the issue, as it's actually broken due to amiguity around "ounces" 2016-01-08 13:05:26 +00:00
Rob Emery 74ea62d38d Conversions: Ading failing test for #1767 (how many ounces in a cup) 2016-01-08 13:03:22 +00:00
Rob Emery 86af08dd98 Conversions: Adding support for cups as a unit (this was missed from the original YAML creation) 2016-01-08 12:52:00 +00:00
Rob Emery 86d4d7fca6 Conversions: Adding tests for #1754 2016-01-08 12:51:19 +00:00
Rob Emery b4ef4a0205 Conversions: Adding support for 'How to convert $x to $y' queries 2016-01-03 12:42:38 +00:00
Rob Emery 1085815b19 Conversions: Fixing hard-tabs 2016-01-02 10:44:30 +00:00
Rob Emery d841ffb676 Conversions: Switching to YAML::XS, LoadFile; also breaking the triggers out from the units. I'd like to introduce prefixes (kilo, mega, ...) as separate things which would need to extend the units 2016-01-01 22:42:08 +00:00
Rob Emery e4555874b4 Conversions: Tidying out warn() that was for some filthy debugging 2016-01-01 22:37:33 +00:00
Rob Emery 2ed2a3f444 Conversions: The answer can now actually be 0 (previously due to a psuedo undefined check it wasn't possible). Readding tautology tests :) 2016-01-01 22:34:47 +00:00
Rob Emery bbfa31ec81 Conversions: Temperature conversion now works correctly. Some of the tests were wrong as they were based on the old results. Tautology questions (0 kelvin in kelvin) will not return a result 2016-01-01 22:16:24 +00:00
Rob Emery 51d26e14a6 Conversions: Fixing execution of '-7 fahrenheit in kelvin' this was because conversions assumed that if the from unit can't be negative then the to unit must also be forbidden, this doesn't apply well to temperature conversion 2016-01-01 22:06:41 +00:00
Rob Emery 56bb2ef181 Conversions: New more accurate temperature calculations, fixing inaccurate test, implementing lc case triggers 2016-01-01 21:56:48 +00:00
Rob Emery 3fe1bfd2da Conversions: Updating merged tests with new output text formats 2016-01-01 21:29:40 +00:00
Rob Emery 7a9f6402cd Merge branch 'mintsoft/temperature/tests' into mintsoft/conversions-converted
Conflicts:
	t/Conversions.t
2016-01-01 21:23:22 +00:00
Rob Emery 4d7fe2900c Merge branch 'mintsoft/temperature/tests' of github.com:duckduckgo/zeroclickinfo-goodies into mintsoft/temperature/tests 2016-01-01 21:21:45 +00:00
Rob Emery eef7d7165a Conversions: Tabs to spaces 2016-01-01 21:20:47 +00:00
Rob Emery 6510c97271 Conversions: Re-adding all failing tests 2016-01-01 21:20:47 +00:00
Rob Emery 59ef7667e1 Conversions: Passing tests for high values (84586 x in y) 2016-01-01 21:20:46 +00:00
Rob Emery 143ab44834 Conversions: Readding all failing tests for Conversions 2016-01-01 21:20:46 +00:00
Rob Emery ac6677eff9 Conversions: Adding -40 F and C 2016-01-01 21:20:46 +00:00
Rob Emery 727dc83980 Conversions: 0 unit in Rankine 2016-01-01 21:20:46 +00:00
Rob Emery 0efdb08eb1 Conversions: -7 <unit> in rankine 2/4 failing 2016-01-01 21:20:46 +00:00
Rob Emery 4b3442a2b8 Conversions: -87 unit in Rankine: 2/4 failing 2016-01-01 21:20:46 +00:00
Rob Emery e02a4f9ed5 Conversions: 1234 unit in R 2016-01-01 21:20:46 +00:00
Rob Emery cb68100d35 Conversions: 10 <unit> in R 2016-01-01 21:20:46 +00:00
Rob Emery dad34b11db Conversions: 0 x in Kelvin; 0 K in K fails as it's not 0, 0 R in K doesn't trigger correctly 2016-01-01 21:20:46 +00:00
Rob Emery 305dba33ff Conversions: The -n <unit> to kelvin suite is failing completely; commenting out until the entire suite is done 2016-01-01 21:20:45 +00:00
Rob Emery d6151edd3b Conversions: 10 <unit> in K 2016-01-01 21:20:45 +00:00
Rob Emery e57d2deff4 Conversions: 0 <unit> in C ; again no result for 0 C in C (same as 0 F in F) 2016-01-01 21:20:45 +00:00
Rob Emery 9a3e50a343 Conversions: -7 <unit> in C 2016-01-01 21:20:45 +00:00
Rob Emery 4df18973d4 Conversions: -87 <unit> in C 2016-01-01 21:20:45 +00:00
Rob Emery ad8acfe7e1 Conversions: 1234 <unit> in C 2016-01-01 21:20:45 +00:00
Rob Emery 74988136a4 Conversions: 10 <unit> in C passing; there is some suspicious loss of accuracy with 10 Rankine to C 2016-01-01 21:20:45 +00:00
Rob Emery b9f5e6e895 Conversions: 3/4 passing tests for 0 <unit> in F; 0F in F returns undef currently, this needs resolving 2016-01-01 21:20:45 +00:00
Rob Emery 51f469758d Conversions: -7 <unit> in F passing tests 2016-01-01 21:20:45 +00:00
Rob Emery 51fb2af74a Conversions: Passing tests for unphysical temperatures 2016-01-01 21:20:44 +00:00
Rob Emery c8d6c77172 Conversions: -87 <unit> into F passing tests 2016-01-01 21:20:44 +00:00
Rob Emery 42794e4709 Conversions: 1234 <unit> in Fahrenheit passing tests 2016-01-01 21:20:44 +00:00
Rob Emery d2ea405b32 Conversions: 10 <unit> into Fahrenheit passing tests 2016-01-01 21:20:44 +00:00
Rob Emery 55f1600e9e Conversions: Adding stubs of temperature tests 2016-01-01 21:20:44 +00:00
Rob Emery 9bfcf27170 Conversions: Should be UTF8 aware 2016-01-01 21:00:18 +00:00
Rob Emery 3f43ab7a0d Conversions: Removing C::P dependency and providing conversions from data provided with goodie 2016-01-01 20:57:08 +00:00
Rob Emery 9c4c61ac7f Merge pull request #1994 from duckduckgo/mintsoft/temporal-test-fixes-2016
Temporal Tests breaking Travis/Prove
2016-01-01 18:55:31 +00:00
Rob Emery 8db867df4d Week: Fixing some paste errors 2016-01-01 18:54:59 +00:00
Rob Emery 1efd95bd81 Week: the 5th week of the year depends on what day the year starts on, in 2016 it falls in Febrary, so it has been moved into the MockTime section 2016-01-01 18:47:11 +00:00
Rob Emery 328ea8a807 Zodiac: Tests are temporal (depending on 2015 as the year) so I'm fixing the time at that point 2016-01-01 18:44:18 +00:00
Caine Tighe 53fc09c09c DDG::Goodie::PrimeNumber: Move maximum value from 1B to 1M. 2015-12-29 12:29:40 -05:00
Zach Thompson 7d44fa70ac Merge pull request #1962 from srvsh/remove_needs_restart
templates.yml: Remove 'needs_restart' field from template definitions
2015-12-29 09:28:55 -07:00