From 7c5af9fcf0ac2d5b8866133ad7b5204b67efd366 Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Sat, 27 Dec 2014 11:45:33 +0200 Subject: [PATCH] Rename .exp to -exp.html in t/html --- t/html/{crunch.exp => crunch-exp.html} | 0 t/html/{defmap.exp => defmap-exp.html} | 0 t/html/{dual_iter.exp => dual_iter-exp.html} | 0 .../{fillinform.exp => fillinform-exp.html} | 0 t/html/{hashmap.exp => hashmap-exp.html} | 0 ...ghlander-15.exp => highlander-15-exp.html} | 0 ...highlander-5.exp => highlander-5-exp.html} | 0 ...ghlander-50.exp => highlander-50-exp.html} | 0 ...lander2-15.exp => highlander2-15-exp.html} | 0 ...lander2-27.exp => highlander2-27-exp.html} | 0 ...ghlander2-5.exp => highlander2-5-exp.html} | 0 ...over.exp => highlander2-passover-exp.html} | 0 t/html/{iter.exp => iter-exp.html} | 0 t/html/{iter2.exp => iter2-exp.html} | 0 t/html/{prune.exp => prune-exp.html} | 0 t/html/{table-alt.exp => table-alt-exp.html} | 0 t/html/{table.exp => table-exp.html} | 0 t/html/{table2.exp => table2-exp.html} | 0 ...-table_ld.exp => table2-table_ld-exp.html} | 0 ...ref.exp => table2-tr_ld-arrayref-exp.html} | 0 ...eref.exp => table2-tr_ld-coderef-exp.html} | 0 ...ault.exp => table2-tr_ld-default-exp.html} | 0 ...roll_select.exp => unroll_select-exp.html} | 0 t/misc.t | 24 +++++++++---------- t/tables.t | 16 ++++++------- 25 files changed, 20 insertions(+), 20 deletions(-) rename t/html/{crunch.exp => crunch-exp.html} (100%) rename t/html/{defmap.exp => defmap-exp.html} (100%) rename t/html/{dual_iter.exp => dual_iter-exp.html} (100%) rename t/html/{fillinform.exp => fillinform-exp.html} (100%) rename t/html/{hashmap.exp => hashmap-exp.html} (100%) rename t/html/{highlander-15.exp => highlander-15-exp.html} (100%) rename t/html/{highlander-5.exp => highlander-5-exp.html} (100%) rename t/html/{highlander-50.exp => highlander-50-exp.html} (100%) rename t/html/{highlander2-15.exp => highlander2-15-exp.html} (100%) rename t/html/{highlander2-27.exp => highlander2-27-exp.html} (100%) rename t/html/{highlander2-5.exp => highlander2-5-exp.html} (100%) rename t/html/{highlander2-passover.exp => highlander2-passover-exp.html} (100%) rename t/html/{iter.exp => iter-exp.html} (100%) rename t/html/{iter2.exp => iter2-exp.html} (100%) rename t/html/{prune.exp => prune-exp.html} (100%) rename t/html/{table-alt.exp => table-alt-exp.html} (100%) rename t/html/{table.exp => table-exp.html} (100%) rename t/html/{table2.exp => table2-exp.html} (100%) rename t/html/{table2-table_ld.exp => table2-table_ld-exp.html} (100%) rename t/html/{table2-tr_ld-arrayref.exp => table2-tr_ld-arrayref-exp.html} (100%) rename t/html/{table2-tr_ld-coderef.exp => table2-tr_ld-coderef-exp.html} (100%) rename t/html/{table2-tr_ld-default.exp => table2-tr_ld-default-exp.html} (100%) rename t/html/{unroll_select.exp => unroll_select-exp.html} (100%) diff --git a/t/html/crunch.exp b/t/html/crunch-exp.html similarity index 100% rename from t/html/crunch.exp rename to t/html/crunch-exp.html diff --git a/t/html/defmap.exp b/t/html/defmap-exp.html similarity index 100% rename from t/html/defmap.exp rename to t/html/defmap-exp.html diff --git a/t/html/dual_iter.exp b/t/html/dual_iter-exp.html similarity index 100% rename from t/html/dual_iter.exp rename to t/html/dual_iter-exp.html diff --git a/t/html/fillinform.exp b/t/html/fillinform-exp.html similarity index 100% rename from t/html/fillinform.exp rename to t/html/fillinform-exp.html diff --git a/t/html/hashmap.exp b/t/html/hashmap-exp.html similarity index 100% rename from t/html/hashmap.exp rename to t/html/hashmap-exp.html diff --git a/t/html/highlander-15.exp b/t/html/highlander-15-exp.html similarity index 100% rename from t/html/highlander-15.exp rename to t/html/highlander-15-exp.html diff --git a/t/html/highlander-5.exp b/t/html/highlander-5-exp.html similarity index 100% rename from t/html/highlander-5.exp rename to t/html/highlander-5-exp.html diff --git a/t/html/highlander-50.exp b/t/html/highlander-50-exp.html similarity index 100% rename from t/html/highlander-50.exp rename to t/html/highlander-50-exp.html diff --git a/t/html/highlander2-15.exp b/t/html/highlander2-15-exp.html similarity index 100% rename from t/html/highlander2-15.exp rename to t/html/highlander2-15-exp.html diff --git a/t/html/highlander2-27.exp b/t/html/highlander2-27-exp.html similarity index 100% rename from t/html/highlander2-27.exp rename to t/html/highlander2-27-exp.html diff --git a/t/html/highlander2-5.exp b/t/html/highlander2-5-exp.html similarity index 100% rename from t/html/highlander2-5.exp rename to t/html/highlander2-5-exp.html diff --git a/t/html/highlander2-passover.exp b/t/html/highlander2-passover-exp.html similarity index 100% rename from t/html/highlander2-passover.exp rename to t/html/highlander2-passover-exp.html diff --git a/t/html/iter.exp b/t/html/iter-exp.html similarity index 100% rename from t/html/iter.exp rename to t/html/iter-exp.html diff --git a/t/html/iter2.exp b/t/html/iter2-exp.html similarity index 100% rename from t/html/iter2.exp rename to t/html/iter2-exp.html diff --git a/t/html/prune.exp b/t/html/prune-exp.html similarity index 100% rename from t/html/prune.exp rename to t/html/prune-exp.html diff --git a/t/html/table-alt.exp b/t/html/table-alt-exp.html similarity index 100% rename from t/html/table-alt.exp rename to t/html/table-alt-exp.html diff --git a/t/html/table.exp b/t/html/table-exp.html similarity index 100% rename from t/html/table.exp rename to t/html/table-exp.html diff --git a/t/html/table2.exp b/t/html/table2-exp.html similarity index 100% rename from t/html/table2.exp rename to t/html/table2-exp.html diff --git a/t/html/table2-table_ld.exp b/t/html/table2-table_ld-exp.html similarity index 100% rename from t/html/table2-table_ld.exp rename to t/html/table2-table_ld-exp.html diff --git a/t/html/table2-tr_ld-arrayref.exp b/t/html/table2-tr_ld-arrayref-exp.html similarity index 100% rename from t/html/table2-tr_ld-arrayref.exp rename to t/html/table2-tr_ld-arrayref-exp.html diff --git a/t/html/table2-tr_ld-coderef.exp b/t/html/table2-tr_ld-coderef-exp.html similarity index 100% rename from t/html/table2-tr_ld-coderef.exp rename to t/html/table2-tr_ld-coderef-exp.html diff --git a/t/html/table2-tr_ld-default.exp b/t/html/table2-tr_ld-default-exp.html similarity index 100% rename from t/html/table2-tr_ld-default.exp rename to t/html/table2-tr_ld-default-exp.html diff --git a/t/html/unroll_select.exp b/t/html/unroll_select-exp.html similarity index 100% rename from t/html/unroll_select.exp rename to t/html/unroll_select-exp.html diff --git a/t/misc.t b/t/misc.t index 51fb284..a0ae26c 100644 --- a/t/misc.t +++ b/t/misc.t @@ -54,14 +54,14 @@ isxml $w, \'

um, p < 4!

', 'wrap_cont $tree = mktree 't/html/crunch.html'; $tree->crunch(look_down => [ class => 'imageElement' ], leave => 1); -isxml $tree, 't/html/crunch.exp', 'crunch'; +isxml $tree, 't/html/crunch-exp.html', 'crunch'; $tree = mktree 't/html/defmap.html'; $tree->defmap(smap => {pause => 'arsenal rules'}, $ENV{TEST_VERBOSE}); -isxml $tree, 't/html/defmap.exp', 'defmap'; +isxml $tree, 't/html/defmap-exp.html', 'defmap'; $tree = mktree 't/html/fillinform.html'; -isxml \($tree->fillinform({state => 'catatonic'})), 't/html/fillinform.exp', 'fillinform'; +isxml \($tree->fillinform({state => 'catatonic'})), 't/html/fillinform-exp.html', 'fillinform'; $tree = mktree 't/html/hashmap.html'; $tree->hash_map( @@ -69,12 +69,12 @@ $tree->hash_map( to_attr => 'sid', excluding => ['email'] ); -isxml $tree, 't/html/hashmap.exp', 'hash_map'; +isxml $tree, 't/html/hashmap-exp.html', 'hash_map'; $tree = mktree 't/html/iter.html'; my $li = $tree->look_down(class => 'store_items'); $tree->iter($li, qw/bread butter vodka/); -isxml $tree, 't/html/iter.exp', 'iter'; +isxml $tree, 't/html/iter-exp.html', 'iter'; my @list = map { [item => $_] } qw/bread butter beans/; my $initial_lol = [ note => [ list => [ item => 'sample' ] ] ]; @@ -84,7 +84,7 @@ is_deeply $new_lol, $expected, 'newchild unrolling'; $tree = mktree 't/html/highlander2.html'; $tree->passover('under18'); -isxml $tree, 't/html/highlander2-passover.exp', 'passover'; +isxml $tree, 't/html/highlander2-passover-exp.html', 'passover'; $tree = mktree 't/html/position.html'; my $found = $tree->look_down(id => 'findme'); @@ -93,7 +93,7 @@ is $pos, '-1 1 0 1 2', 'position'; $tree = mktree 't/html/prune.html'; $tree->prune; -isxml $tree, 't/html/prune.exp', 'prune'; +isxml $tree, 't/html/prune-exp.html', 'prune'; ################################################## # Longer tests @@ -119,7 +119,7 @@ $tree->iter2( debug => $ENV{TEST_VERBOSE}, ); -isxml $tree, 't/html/dual_iter.exp', 'dual_iter'; +isxml $tree, 't/html/dual_iter-exp.html', 'dual_iter'; ### @@ -133,7 +133,7 @@ for my $age (qw/5 15 50/) { ], $age ); - isxml $tree, "t/html/highlander-$age.exp", "highlander for $age"; + isxml $tree, "t/html/highlander-$age-exp.html", "highlander for $age"; } ### @@ -154,7 +154,7 @@ for my $age (qw/5 15 27/) { cond_arg => [ $age ] ); - isxml ($tree, "t/html/highlander2-$age.exp", "highlander2 for age $age"); + isxml ($tree, "t/html/highlander2-$age-exp.html", "highlander2 for age $age"); } ### @@ -186,7 +186,7 @@ $tree->iter2( debug => $ENV{TEST_VERBOSE}, ); -isxml $tree, 't/html/iter2.exp', 'iter2'; +isxml $tree, 't/html/iter2-exp.html', 'iter2'; ### @@ -205,4 +205,4 @@ $tree->unroll_select( data => \@data, data_iter => sub { my $data = shift; shift @$data }); -isxml $tree, 't/html/unroll_select.exp', 'unroll_select'; +isxml $tree, 't/html/unroll_select-exp.html', 'unroll_select'; diff --git a/t/tables.t b/t/tables.t index dcb6793..6fccb64 100644 --- a/t/tables.t +++ b/t/tables.t @@ -51,7 +51,7 @@ $tree->table( $tr_node->content_handler($_ => $tr_data->{$_}) for qw(name age weight) }); -isxml $tree, 't/html/table.exp', 'table'; +isxml $tree, 't/html/table-exp.html', 'table'; ### @@ -70,7 +70,7 @@ $tree->table( $tr_node->content_handler($_ => $tr_data->{$_}) for qw(name age weight) }); -isxml $tree, 't/html/table-alt.exp', 'table (alternating)'; +isxml $tree, 't/html/table-alt-exp.html', 'table (alternating)'; ### @@ -101,7 +101,7 @@ for my $dataset (keys %$d) { ); } -isxml $tree, 't/html/table2.exp', 'table2'; +isxml $tree, 't/html/table2-exp.html', 'table2'; ### @@ -111,7 +111,7 @@ my $table = HTML::Element::Library::ref_or_ld( $tree, ['_tag' => 'table'] ); -isxml $table, 't/html/table2-table_ld.exp', 'table2 look_down default'; +isxml $table, 't/html/table2-table_ld-exp.html', 'table2 look_down default'; ### @@ -120,7 +120,7 @@ $table = HTML::Element::Library::ref_or_ld( $tree, [frame => 'hsides', rules => 'groups'] ); -isxml $table, 't/html/table2-table_ld.exp', 'table2 look_down arrayref'; +isxml $table, 't/html/table2-table_ld-exp.html', 'table2 look_down arrayref'; # c - coderef table_ld $table = HTML::Element::Library::ref_or_ld( @@ -131,7 +131,7 @@ $table = HTML::Element::Library::ref_or_ld( $caption->parent; } ); -isxml $table, 't/html/table2-table_ld.exp', 'table2 look_down coderef'; +isxml $table, 't/html/table2-table_ld-exp.html', 'table2 look_down coderef'; ### @@ -167,7 +167,7 @@ HTML::Element::Library::ref_or_ld( @keep; } ); -isxml $tree, 't/html/table2-tr_ld-coderef.exp', 'table2 tr look_down (coderef)'; +isxml $tree, 't/html/table2-tr_ld-coderef-exp.html', 'table2 tr look_down (coderef)'; # c - arrayref tr_ld @@ -176,4 +176,4 @@ my $tr = HTML::Element::Library::ref_or_ld( $tree, [class => 'findMe'] ); -isxml $tr, 't/html/table2-tr_ld-arrayref.exp', 'table2 tr look_down (arrayref)'; +isxml $tr, 't/html/table2-tr_ld-arrayref-exp.html', 'table2 tr look_down (arrayref)'; -- 2.30.2