Guest User

Untitled

a guest
Apr 26th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. #!perl
  2. use strict;
  3. use warnings;
  4.  
  5. use Net::Google::Spreadsheets;
  6. use Config::Pit;
  7. use Test::More;
  8.  
  9. my $c = pit_get('google.com'); # or your hashref
  10.  
  11. ok my $s = Net::Google::Spreadsheets->new(
  12. username => $c->{username},
  13. password => $c->{password},
  14. );
  15.  
  16. my @ws;
  17. for (qw(test1 test2)) {
  18. push @ws, $s->spreadsheet({title => $_})->worksheet;
  19. }
  20.  
  21. for my $i (1 .. 10) {
  22. for my $j (1 .. 10) {
  23. for my $w (@ws) {
  24. ok my $cell = $w->cell({row => $i, col => $j});
  25. ok $cell->input_value($i*$j);
  26. }
  27. }
  28. }
  29.  
  30. done_testing;
Add Comment
Please, Sign In to add comment