21 Feb 2003 13:13:04 UTC
- Distribution: Acme-Test-Weather
- Module version: 0.1
- Source (raw)
- Browse (raw)
- How to Contribute
- Testers (0 / 2 / 0)
- KwaliteeBus factor: 0
- License: unknown
- Activity24 month
- Download (4.23KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionASCOPE Aaron Straup Cope
- PACKAGE FUNCTIONS
- SEE ALSO
Acme::Test::Weather - Test the weather conditions for a user.
use Test::Weather; plan tests => 2; # You may only install something # when it's nice outside. &isnt_snowing(); &isnt_cloudy(); # output: 1..2 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.
Test the weather conditions for a user.
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...
$Date: 2003/02/20 23:42:36 $
Aaron Straup Cope
It's all Kellan's fault.
Not hard to imagine.
Please report all bugs via http://rt.cpan.org
Copyright (c) 2003, Aaron Straup Cope. All Rights Reserved.
This is free software, you may use it and distribute it under the same terms as Perl itself
Module Install Instructions
To install Acme::Test::Weather, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Acme::Test::Weather
For more information on module installation, please visit the detailed CPAN module installation guide.