Add stress test for correctness

This commit is contained in:
SamDoiron
2020-01-06 14:05:33 -05:00
parent 84e789e2c1
commit 050ee05583
3 changed files with 140 additions and 41 deletions
+3
View File
@@ -13,6 +13,8 @@ module Liquid
class Capture < Block
Syntax = /(#{VariableSignature}+)/o
attr_reader :to
def initialize(tag_name, markup, options)
super
if markup =~ Syntax
@@ -33,6 +35,7 @@ module Liquid
def blank?
true
end
end
Template.register_tag('capture'.freeze, Capture)