File: GnomeUtil.t

package info (click to toggle)
libgnome2-perl 1.042-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 596 kB
  • ctags: 12
  • sloc: perl: 1,145; ansic: 16; makefile: 15
file content (15 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl -w
use strict;
use Gnome2;

use constant TESTS => 4;
use Test::More tests => TESTS;

# $Header: /cvsroot/gtk2-perl/gtk2-perl-xs/Gnome2/t/GnomeUtil.t,v 1.2 2006/12/30 15:11:06 kaffeetisch Exp $

###############################################################################

is(Gnome2::Util -> extension("blub.abw"), "abw");
like(Gnome2::Util -> prepend_user_home("blub.abw"), qr/blub.abw/);
like(Gnome2::Util -> home_file("blub.abw"), qr/blub.abw/);
ok(-e Gnome2::Util -> user_shell());