From c270e661f2161e8e79a328211c191d67a3068a3b Mon Sep 17 00:00:00 2001 From: Sean Kellogg Date: Thu, 3 Jan 2013 17:03:28 -0800 Subject: [PATCH 1/5] start some liquid scanner tests --- liquid/directive.expected.raydebug | 1 + liquid/directive.in.liquid | 1 + liquid/output.expected.raydebug | 1 + liquid/output.in.liquid | 1 + liquid/suite.rb | 2 ++ 5 files changed, 6 insertions(+) create mode 100644 liquid/directive.expected.raydebug create mode 100644 liquid/directive.in.liquid create mode 100644 liquid/output.expected.raydebug create mode 100644 liquid/output.in.liquid create mode 100644 liquid/suite.rb diff --git a/liquid/directive.expected.raydebug b/liquid/directive.expected.raydebug new file mode 100644 index 0000000..4423cd0 --- /dev/null +++ b/liquid/directive.expected.raydebug @@ -0,0 +1 @@ +inline \ No newline at end of file diff --git a/liquid/directive.in.liquid b/liquid/directive.in.liquid new file mode 100644 index 0000000..a694992 --- /dev/null +++ b/liquid/directive.in.liquid @@ -0,0 +1 @@ +{% fill %} \ No newline at end of file diff --git a/liquid/output.expected.raydebug b/liquid/output.expected.raydebug new file mode 100644 index 0000000..237c400 --- /dev/null +++ b/liquid/output.expected.raydebug @@ -0,0 +1 @@ +inline \ No newline at end of file diff --git a/liquid/output.in.liquid b/liquid/output.in.liquid new file mode 100644 index 0000000..59caffb --- /dev/null +++ b/liquid/output.in.liquid @@ -0,0 +1 @@ +{{ hello }} \ No newline at end of file diff --git a/liquid/suite.rb b/liquid/suite.rb new file mode 100644 index 0000000..750339f --- /dev/null +++ b/liquid/suite.rb @@ -0,0 +1,2 @@ +class Liquid < CodeRay::TestCase +end From 21d373c09c3fa4b4a6e615458eff774630c1eb83 Mon Sep 17 00:00:00 2001 From: Sean Kellogg Date: Thu, 3 Jan 2013 18:02:36 -0800 Subject: [PATCH 2/5] flesh out basic scanner specs --- liquid/directive.expected.raydebug | 2 +- liquid/directive.in.liquid | 2 +- liquid/output.expected.raydebug | 2 +- liquid/output.in.liquid | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/liquid/directive.expected.raydebug b/liquid/directive.expected.raydebug index 4423cd0..78b2927 100644 --- a/liquid/directive.expected.raydebug +++ b/liquid/directive.expected.raydebug @@ -1 +1 @@ -inline \ No newline at end of file +tag()inlinetag() \ No newline at end of file diff --git a/liquid/directive.in.liquid b/liquid/directive.in.liquid index a694992..2249b20 100644 --- a/liquid/directive.in.liquid +++ b/liquid/directive.in.liquid @@ -1 +1 @@ -{% fill %} \ No newline at end of file +{% fill %} \ No newline at end of file diff --git a/liquid/output.expected.raydebug b/liquid/output.expected.raydebug index 237c400..fb15847 100644 --- a/liquid/output.expected.raydebug +++ b/liquid/output.expected.raydebug @@ -1 +1 @@ -inline \ No newline at end of file +tag()inlinetag() \ No newline at end of file diff --git a/liquid/output.in.liquid b/liquid/output.in.liquid index 59caffb..3e96754 100644 --- a/liquid/output.in.liquid +++ b/liquid/output.in.liquid @@ -1 +1 @@ -{{ hello }} \ No newline at end of file +{{ hello }} \ No newline at end of file From f09ec2323d768432a6f816d1e9c8eae19bf55470 Mon Sep 17 00:00:00 2001 From: Asher Cohen Date: Thu, 28 Mar 2013 13:01:59 -0700 Subject: [PATCH 3/5] update liquid tests --- liquid/directive.expected.raydebug | 2 +- liquid/mixed.expected.raydebug | 11 +++++++++++ liquid/mixed.in.liquid | 11 +++++++++++ liquid/output.expected.raydebug | 2 +- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 liquid/mixed.expected.raydebug create mode 100644 liquid/mixed.in.liquid diff --git a/liquid/directive.expected.raydebug b/liquid/directive.expected.raydebug index 78b2927..ee7170f 100644 --- a/liquid/directive.expected.raydebug +++ b/liquid/directive.expected.raydebug @@ -1 +1 @@ -tag()inlinetag() \ No newline at end of file +tag()tag({%) directive(fill) tag(%})tag() \ No newline at end of file diff --git a/liquid/mixed.expected.raydebug b/liquid/mixed.expected.raydebug new file mode 100644 index 0000000..32b5416 --- /dev/null +++ b/liquid/mixed.expected.raydebug @@ -0,0 +1,11 @@ +tag({%) directive(assignlist) variable(tabs) operator(=) directive(script)delimiter(:)string("tabbify_data") key(tabs)delimiter(:)value(4) key(items_per_tab)delimiter(:)value(3) tag(%}) + +tag(tag(>) + + tag(
    ) + tag({%) directive(for) variable(tab) operator(in) variable(tabs) tag(%}) + tag(
  • ) + tag(tag({{) variable(forloop.index) tag(}})stringtag(>)plain(Panel )tag({{) variable(forloop.index) tag(}})tag() + tag(
  • ) + tag({%) directive(endfor) tag(%}) + tag(
) \ No newline at end of file diff --git a/liquid/mixed.in.liquid b/liquid/mixed.in.liquid new file mode 100644 index 0000000..f12b7eb --- /dev/null +++ b/liquid/mixed.in.liquid @@ -0,0 +1,11 @@ +{% assignlist tabs = script:"tabbify_data" tabs:4 items_per_tab:3 %} + +
+ + \ No newline at end of file diff --git a/liquid/output.expected.raydebug b/liquid/output.expected.raydebug index fb15847..1bc85c5 100644 --- a/liquid/output.expected.raydebug +++ b/liquid/output.expected.raydebug @@ -1 +1 @@ -tag()inlinetag() \ No newline at end of file +tag()tag({{) variable(hello) tag(}})tag() \ No newline at end of file From a0636593f2d21d3929b86ec1b7c9c5fd44a02fe6 Mon Sep 17 00:00:00 2001 From: Asher Cohen Date: Thu, 4 Apr 2013 14:01:04 -0700 Subject: [PATCH 4/5] update liquid tests --- liquid/directive.actual.raydebug | 1 + liquid/output.actual.raydebug | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 liquid/directive.actual.raydebug create mode 100644 liquid/output.actual.raydebug diff --git a/liquid/directive.actual.raydebug b/liquid/directive.actual.raydebug new file mode 100644 index 0000000..ee7170f --- /dev/null +++ b/liquid/directive.actual.raydebug @@ -0,0 +1 @@ +tag()tag({%) directive(fill) tag(%})tag() \ No newline at end of file diff --git a/liquid/output.actual.raydebug b/liquid/output.actual.raydebug new file mode 100644 index 0000000..32b5416 --- /dev/null +++ b/liquid/output.actual.raydebug @@ -0,0 +1,11 @@ +tag({%) directive(assignlist) variable(tabs) operator(=) directive(script)delimiter(:)string("tabbify_data") key(tabs)delimiter(:)value(4) key(items_per_tab)delimiter(:)value(3) tag(%}) + +tag(tag(>) + + tag(
    ) + tag({%) directive(for) variable(tab) operator(in) variable(tabs) tag(%}) + tag(
  • ) + tag(tag({{) variable(forloop.index) tag(}})stringtag(>)plain(Panel )tag({{) variable(forloop.index) tag(}})tag() + tag(
  • ) + tag({%) directive(endfor) tag(%}) + tag(
) \ No newline at end of file From 24b3405384b7d1c2e93932511e0f290f465da2ec Mon Sep 17 00:00:00 2001 From: Asher Cohen Date: Thu, 4 Apr 2013 14:02:28 -0700 Subject: [PATCH 5/5] remove generated liquid files --- liquid/directive.actual.raydebug | 1 - liquid/output.actual.raydebug | 11 ----------- 2 files changed, 12 deletions(-) delete mode 100644 liquid/directive.actual.raydebug delete mode 100644 liquid/output.actual.raydebug diff --git a/liquid/directive.actual.raydebug b/liquid/directive.actual.raydebug deleted file mode 100644 index ee7170f..0000000 --- a/liquid/directive.actual.raydebug +++ /dev/null @@ -1 +0,0 @@ -tag()tag({%) directive(fill) tag(%})tag() \ No newline at end of file diff --git a/liquid/output.actual.raydebug b/liquid/output.actual.raydebug deleted file mode 100644 index 32b5416..0000000 --- a/liquid/output.actual.raydebug +++ /dev/null @@ -1,11 +0,0 @@ -tag({%) directive(assignlist) variable(tabs) operator(=) directive(script)delimiter(:)string("tabbify_data") key(tabs)delimiter(:)value(4) key(items_per_tab)delimiter(:)value(3) tag(%}) - -tag(tag(>) - - tag(
    ) - tag({%) directive(for) variable(tab) operator(in) variable(tabs) tag(%}) - tag(
  • ) - tag(tag({{) variable(forloop.index) tag(}})stringtag(>)plain(Panel )tag({{) variable(forloop.index) tag(}})tag() - tag(
  • ) - tag({%) directive(endfor) tag(%}) - tag(
) \ No newline at end of file