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 |
|
---|
5 | use strict;
|
---|
6 | use Test::More;
|
---|
7 |
|
---|
8 | my $nt = 0;
|
---|
9 |
|
---|
10 | my $url = "svn+ssh://account\@machine.sdom.tld:8080/path/to/file";
|
---|
11 | my ($scheme, $account, $host, $port, $path) = pb_get_uri($uri);
|
---|
12 |
|
---|
13 | is($scheme, "svn+ssh", "pb_get_uri Test protocol");
|
---|
14 | $nt++;
|
---|
15 |
|
---|
16 | is($account, "account", "pb_get_uri Test account");
|
---|
17 | $nt++;
|
---|
18 |
|
---|
19 | is($host, "machine.sdom.tld", "pb_get_uri Test host");
|
---|
20 | $nt++;
|
---|
21 |
|
---|
22 | is($port, "8080", "pb_get_uri Test port");
|
---|
23 | $nt++;
|
---|
24 |
|
---|
25 | is($path, "/path/to/file", "pb_get_uri Test path");
|
---|
26 | $nt++;
|
---|
27 |
|
---|
28 | done_testing($nt);
|
---|
Note:
See
TracBrowser
for help on using the repository browser.