mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@3851 57a11ea4-9604-0410-9ed3-97b8803252fd
25 lines
528 B
Perl
Executable File
25 lines
528 B
Perl
Executable File
#!/usr/bin/perl -w
|
|
use strict;
|
|
use Test;
|
|
BEGIN {plan tests => 8};
|
|
|
|
use Finance::Quote;
|
|
|
|
# Test TIAA-CREF functions.
|
|
|
|
my $q = Finance::Quote->new();
|
|
|
|
my %quotes = $q->tiaacref("CREFmony","TIAAreal","BOGOname");
|
|
ok(%quotes);
|
|
|
|
ok($quotes{"CREFmony","nav"} > 0);
|
|
ok($quotes{"CREFmony", "currency"} eq "USD");
|
|
ok(length($quotes{"CREFmony","date"}) > 0);
|
|
|
|
ok($quotes{"TIAAreal","nav"} > 0);
|
|
ok(length($quotes{"TIAAreal","date"}) > 0);
|
|
|
|
ok($quotes{"BOGOname","success"} == 0);
|
|
ok($quotes{"BOGOname","errormsg"} eq "Bad symbol");
|
|
|