Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Acme::Test::Weather 0.2

    Download button

    No screenshots available
    Downloads: 389  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Aaron Straup Cope | More programs
    Perl Artistic License / FREE
    March 19th, 2007, 17:09 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Acme::Test::Weather description

    A Perl module to test the weather conditions for a user

    Acme::Test::Weather is a Perl module to test the weather conditions for a user.

    SYNOPSIS

    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.


    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...

    PACKAGE FUNCTIONS

    &is_cloudy()

    Make sure it is cloudy, but remember the silver lining.

    &isnt_cloudy()

    No clouds. Not even little fluffy ones.

    &is_raining()

    Make sure it is raining.

    &isnt_raining()

    Make sure sure it is not raining.

    &is_snowing()

    Make sure it is snowing.

    &isnt_snowing()

    Make sure it is not snowing.

    &is_sunny()

    Make sure it is sunny.

    &isnt_sunny()

    Make sure it is not sunny. Why are you so angry?

    &eq_celsius($int)

    Temperature in degrees Celsius.

    >_celsius($int)

    Cooler than, in degrees Celcius.

    <_celsius($int)

    Warmer than, in degrees Celsius.

    &eq_fahrenheit($int)

    Temperature, in degrees Fahrenheit.

    >_fahrenheit($int)

    Warmer than, in degrees Fahrenheit.

    <_fahrenheit($int)

    Cooler than, in degrees Fahrenheit.

    &eq_humidity($int)

    Humidity.

    >_humidity($int)

    Humidity is greater than.

    <_humidity($int)

    Humidity is less than.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    test weather | weather conditions | Perl module | Acme::Test::Weather | test | weather

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM