Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tweaks (thanks to day 10)
  • Loading branch information
dwarring committed Apr 16, 2014
1 parent 6ef4a7c commit c691297
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions integration/advent2012-day03.t
Expand Up @@ -53,8 +53,8 @@ my $interface =
Widget.new(name => 'subpart 2', size => *))),
Widget.new(name => 'status bar', size => 1)));

my @drawing = gather { $interface.compute-layout; }, ''; # Draw
is @drawing.join("\n"), q:to"END_LAYOUT_1", 'initial layout';
my @drawing = gather { $interface.compute-layout; }; # Draw
is_deeply @drawing, [q:to"END_LAYOUT_1".lines], 'initial layout';
+-------------------------+
| menu bar (1 lines) |
+-------------------------+
Expand All @@ -73,8 +73,8 @@ is @drawing.join("\n"), q:to"END_LAYOUT_1", 'initial layout';
END_LAYOUT_1
$interface.size += 3; # Resize
@drawing = gather { $interface.compute-layout }, ''; # Redraw
is @drawing.join("\n"), q:to"END_LAYOUT_2", 'resized layout';
@drawing = gather { $interface.compute-layout }; # Redraw
is_deeply @drawing, [q:to"END_LAYOUT_2".lines], 'resized layout';
+-------------------------+
| menu bar (1 lines) |
+-------------------------+
Expand Down

0 comments on commit c691297

Please sign in to comment.