Skip to content

Commit

Permalink
Add (failing) test script for nested brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
sartak committed Sep 15, 2007
1 parent 660ca39 commit 5845856
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions t/010-nested-bracket.t
@@ -0,0 +1,35 @@
#!perl -T
use strict;
use warnings;
use Test::More tests => 1;

my $out = Moonfall::NestedBracket->filter(<<'INPUT');
#site_container {
width: [$widths[1]];
min-width: [$widths[0]];
}
#top_container {
width: [$widths[ $widths[3] ]];
}
INPUT

is($out, <<"EXPECTED", "nested brackets work");
#site_container {
width: 200px;
min-width: 1000px;
}
#top_container {
width: 300px;
}
EXPECTED

BEGIN
{
package Moonfall::NestedBracket;
use CSS::Moonfall;

our @widths = (100, 200, 300, 2);
}

0 comments on commit 5845856

Please sign in to comment.