Entry.t 559 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/perl
  2. use strict;
  3. use warnings;
  4. use Test::More qw{no_plan};
  5. main();
  6. sub main {
  7. my $class = 'Fcm::Keyword::Entry';
  8. use_ok($class);
  9. test_normal($class);
  10. }
  11. ################################################################################
  12. # Tests normal usage
  13. sub test_normal {
  14. my ($class) = 'Fcm::Keyword::Entry';
  15. my $entry = $class->new({key => 'key', value => 'value'});
  16. isa_ok($entry, $class);
  17. is($entry->get_key(), 'key', "normal: get_key()");
  18. is($entry->get_value(), 'value', "normal: get_value()");
  19. }
  20. __END__