File: GnomeUtil.t

package info (click to toggle)
libgnome2-perl 1.040-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 576 kB
  • ctags: 17
  • sloc: perl: 1,143; makefile: 52; ansic: 16
file content (15 lines) | stat: -rw-r--r-- 530 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.1 2003/09/26 14:33:17 kaffeetisch Exp $

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

is(Gnome2::Util -> extension("blub.abw"), "abw");
is(Gnome2::Util -> prepend_user_home("blub.abw"), "$ENV{ HOME }/blub.abw");
is(Gnome2::Util -> home_file("blub.abw"), "$ENV{ HOME }/.gnome2/blub.abw");
ok(-e Gnome2::Util -> user_shell());