Acme::Test::Weather is a Perl module to test the weather conditions for a user.
plan tests => 2;
# You may only install something
# when it's nice outside.
ok 1 - it's partly cloudy in Montreal, Canada
not ok 2 - it's partly cloudy in Montreal, Canada
# Failed test (./t/mtl.t at line 5)
# 'Partly Cloudy'
# matches '(?i-xsm:bcloudy)'
# Looks like you failed 1 tests of 2.
The package determines a user's location by looking up their hostname / IP address using the CAIDA::NetGeo::Client package.
Based on the data returned, weather conditions are polled using the Weather::Underground package.
Because, you know, it may be important to your Perl module that it's raining outside...
Make sure it is cloudy, but remember the silver lining.
No clouds. Not even little fluffy ones.
Make sure it is raining.
Make sure sure it is not raining.
Make sure it is snowing.
Make sure it is not snowing.
Make sure it is sunny.
Make sure it is not sunny. Why are you so angry?
Temperature in degrees Celsius.
Cooler than, in degrees Celcius.
Warmer than, in degrees Celsius.
Temperature, in degrees Fahrenheit.
Warmer than, in degrees Fahrenheit.
Cooler than, in degrees Fahrenheit.
Humidity is greater than.
Humidity is less than.