Skip to content

Commit 3392bd3

Browse files
committed
make all the perl tests pass after moving perl folder to languages/
1 parent 9364795 commit 3392bd3

29 files changed

+47
-47
lines changed

languages/perl/t/00_base.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ BEGIN { use_ok('Xray::XDIFile') };
1515

1616
my $errcode = 0;
1717
my $here = dirname($0);
18-
my $file = File::Spec->catfile($here, '..', '..', 'data', 'co_metal_rt.xdi');
18+
my $file = File::Spec->catfile($here, '..', '..', '..', 'data', 'co_metal_rt.xdi');
1919
my $xdifile = Xray::XDIFile->new($file, $errcode);
2020
ok($errcode == 0, 'error code = 0');
2121
ok($xdifile =~ m{Xray::XDIFile}, 'created Xray::XDIFile object');

languages/perl/t/01_moose_nonmoose.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ my $epsi = 0.001;
1414
BEGIN { use_ok('Xray::XDI') };
1515

1616
my $here = dirname($0);
17-
my $file = File::Spec->catfile($here, '..', '..', 'data', 'co_metal_rt.xdi');
17+
my $file = File::Spec->catfile($here, '..', '..', '..', 'data', 'co_metal_rt.xdi');
1818
my $xdi = Xray::XDI->new(file=>$file);
1919
ok($xdi =~ m{Xray::XDI}, 'created Xray::XDI object');
2020
ok(($xdi->errorcode == 0), 'errorcode 0');

languages/perl/t/02_moosish.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ my $epsi = 0.001;
1414
BEGIN { use_ok('Xray::XDI') };
1515

1616
my $here = dirname($0);
17-
my $file = File::Spec->catfile($here, '..', '..', 'data', 'co_metal_rt.xdi');
17+
my $file = File::Spec->catfile($here, '..', '..', '..', 'data', 'co_metal_rt.xdi');
1818
my $xdi = Xray::XDI->new(file=>$file);
1919

2020
ok($xdi->errorcode == 0, 'file imported properly');

languages/perl/t/03_nofile.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ use File::Spec;
1212
BEGIN { use_ok('Xray::XDI') };
1313

1414
my $here = dirname($0);
15-
my $file = File::Spec->catfile($here, '..', '..', 'data', 'co_metal_rt.xdiX');
15+
my $file = File::Spec->catfile($here, '..', '..', '..', 'data', 'co_metal_rt.xdiX');
1616
my $xdi = Xray::XDI->new(file=>$file);
1717
ok($xdi->errormessage =~ m{does not exist}, 'file not exist');
1818

19-
$file = File::Spec->catfile($here, '..', '..', 'data');
19+
$file = File::Spec->catfile($here, '..', '..', '..', 'data');
2020
$xdi = Xray::XDI->new(file=>$file);
2121
ok($xdi->errormessage =~ m{is a folder}, 'is a folder');
2222

languages/perl/t/baddata/01_no_xdi_line.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ my $epsi = 0.001;
1414
BEGIN { use_ok('Xray::XDI') };
1515

1616
my $here = dirname($0);
17-
my $file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_01.xdi');
17+
my $file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_01.xdi');
1818
my $xdi = Xray::XDI->new(file=>$file);
1919
#my $xdi = Xray::XDI->new;
2020
#$xdi->file($file);

languages/perl/t/baddata/02_no_edge.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ my $epsi = 0.001;
1414
BEGIN { use_ok('Xray::XDI') };
1515

1616
my $here = dirname($0);
17-
my $file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_02.xdi');
17+
my $file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_02.xdi');
1818
my $xdi = Xray::XDI->new(file=>$file);
1919

2020
$xdi->required;
2121
ok(($xdi->errorcode>0), 'bad_02.xdi flagged with a warning');
2222
ok(($xdi->errormessage =~ m{Element.edge missing}), 'correctly identified missing edge symbol');
2323

2424

25-
$file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_04.xdi');
25+
$file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_04.xdi');
2626
$xdi = Xray::XDI->new(file=>$file);
2727

2828
$xdi->required;

languages/perl/t/baddata/03_no_symbol.t

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ my $epsi = 0.001;
1414
BEGIN { use_ok('Xray::XDI') };
1515

1616
my $here = dirname($0);
17-
my $file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_03.xdi');
17+
my $file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_03.xdi');
1818
my $xdi = Xray::XDI->new(file=>$file);
1919

2020
$xdi->required;
2121
ok(($xdi->errorcode>0), 'bad_03.xdi flagged with a warning');
2222
ok(($xdi->errormessage =~ m{Element.symbol missing}), 'correctly identified missing element symbol');
2323

24-
$file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_05.xdi');
24+
$file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_05.xdi');
2525
$xdi = Xray::XDI->new(file=>$file);
2626

2727
$xdi->required;

languages/perl/t/baddata/06_no_minus_signs.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ my $epsi = 0.001;
1414
BEGIN { use_ok('Xray::XDI') };
1515

1616
my $here = dirname($0);
17-
my $file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_06.xdi');
17+
my $file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_06.xdi');
1818
my $xdi = Xray::XDI->new(file=>$file);
1919

2020
ok(($xdi->errorcode>0), 'bad_06.xdi flagged with warning');

languages/perl/t/baddata/07_columns.t

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,28 @@ use File::Spec;
1212
BEGIN { use_ok('Xray::XDI') };
1313

1414
my $here = dirname($0);
15-
my $file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_07.xdi');
15+
my $file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_07.xdi');
1616
my $xdi = Xray::XDI->new(file=>$file);
1717

1818
$xdi->recommended;
1919
ok(($xdi->errorcode>1), 'bad_07.xdi flagged as ok');
2020
ok(($xdi->errormessage =~ m{Column.1}), 'no column labels');
2121

22-
$file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_08.xdi');
22+
$file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_08.xdi');
2323
$xdi = Xray::XDI->new(file=>$file);
2424

2525
$xdi->recommended;
2626
ok(($xdi->errorcode == 0), 'bad_08.xdi flagged as ok');
2727
ok(($xdi->errormessage =~ m{\A\s*\z}), 'to few column labels');
2828

29-
$file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_09.xdi');
29+
$file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_09.xdi');
3030
$xdi = Xray::XDI->new(file=>$file);
3131

3232
$xdi->recommended;
3333
ok(($xdi->errorcode == 0), 'bad_09.xdi flagged as ok');
3434
ok(($xdi->errormessage =~ m{\A\s*\z}), 'to many column labels');
3535

36-
$file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_10.xdi');
36+
$file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_10.xdi');
3737
$xdi = Xray::XDI->new(file=>$file);
3838

3939
$xdi->recommended;

languages/perl/t/baddata/11_bad_comment_char.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ my $epsi = 0.001;
1414
BEGIN { use_ok('Xray::XDI') };
1515

1616
my $here = dirname($0);
17-
my $file = File::Spec->catfile($here, '..', '..', '..', 'baddata', 'bad_11.xdi');
17+
my $file = File::Spec->catfile($here, '..', '..', '..', '..', 'baddata', 'bad_11.xdi');
1818
my $xdi = Xray::XDI->new(file=>$file);
1919

2020
ok(($xdi->errorcode>0), 'bad_11.xdi flagged with warning on import');

0 commit comments

Comments
 (0)