dynamic page-name publishing for mediawiki
[scpubgit/System-Introspector-Report.git] / t / updater.t
CommitLineData
0331d9cd 1use strictures 1;
2use Test::More;
3
4use aliased 'System::Introspector::Report::Updater';
5
6my $updater = Updater->new;
7
8my $content = $updater->merge(
9 [],
10 [
11 { id => "foo",
12 title => "Foo",
13 columns => [{ key => "a", label => "A" }, { key => "b", label => "B" }],
14 rows => [
15 { a => 17, b => 23 },
16 { a => 23, b => 17 },
17 ],
18 },
19 { id => "bar",
20 title => "Bar",
21 columns => [{ key => "a", label => "A" }, { key => "b", label => "B" }],
22 rows => [
23 { a => 17, b => 23 },
24 { a => 23, b => 17 },
25 ],
26 },
27 ],
28);
29
30ok scalar(@$content), 'received content';
31
32done_testing;