source: ProjectBuilder/devel/t/Base.t@ 1075

Last change on this file since 1075 was 1075, checked in by Bruno Cornec, 14 years ago

r3959@localhost: bruno | 2010-07-22 21:44:20 +0200

  • Create a first test module for Base functions
File size: 548 bytes
Line 
1#!/usr/bin/perl -w
2#
3# Tests ProjectBuilder::Base functions
4
5use strict;
6use Test::More;
7
8my $nt = 0;
9
10my $url = "svn+ssh://account\@machine.sdom.tld:8080/path/to/file";
11my ($scheme, $account, $host, $port, $path) = pb_get_uri($uri);
12
13is($scheme, "svn+ssh", "pb_get_uri Test protocol");
14$nt++;
15
16is($account, "account", "pb_get_uri Test account");
17$nt++;
18
19is($host, "machine.sdom.tld", "pb_get_uri Test host");
20$nt++;
21
22is($port, "8080", "pb_get_uri Test port");
23$nt++;
24
25is($path, "/path/to/file", "pb_get_uri Test path");
26$nt++;
27
28done_testing($nt);
Note: See TracBrowser for help on using the repository browser.