o
    .d                  
   @   s  d Z ddlZddlmZ g eddddedd	d
deddddeddddeddddeddddddiideddddeddddedd ddddiided!d"d#dd$d%d#giided&d'd%dd$d%d#giided(d)d#dd$d%d#giided*d+d,dddiided-d.d/dd$d%d#giided0d1d2ded3d4d5d6d7dd8d5iiiidd8d9d:ded;d<ej d=d>d?ed@dAej d=d>d?edBdCd8dedDdEdFdedGdHd8dedIdJdKdedLdMdNdedOdPddedQdRdSdedTdUdSdedVdWdXddYidedZd[d\ddYided]d^d_d`dd_iddaigidedbdcd_d`dd_iddaigidedddedd`dd_iddaigidfdfdgedhdidjddjiddkdedldmdjddjdndedodpd8dgdqdid8drdZdS )sz8Golden tests cases for testing liquid output statements.    N)Casezrender a string literalz{{ 'hello' }}hello)descriptiontemplateexpectzrender an integer literalz	{{ 123 }}123z!render a negative integer literalz
{{ -123 }}z-123zrender a float literalz
{{ 1.23 }}z1.23z
render nilz	{{ nil }} z+render a variable from the global namespacez{{ product.title }}fooproducttitle)r   r   r   globalsz*render a variable from the local namespacez%{% assign name = 'Brian' %}{{ name }}Brianzrender an undefined variablez	{{ age }}zrender an undefined propertyz{{ product.age }}zaccess an array item by indexz{{ product.tags[1] }}gardentagssportsz&access an array item by negative indexz{{ product.tags[-2] }}z5access array item by index stored in a local variablez'{% assign i = 1 %}{{ product.tags[i] }}z&render a global variable with a filterz{{ product.title | upcase }}FOOz%dump an array from the global contextz{{ product.tags | join: '#' }}zsports#gardenz3assign a variable the value of an existing variablezo{% capture some %}hello{% endcapture %}{% assign other = some %}{% assign some = 'foo' %}{{ some }}-{{ other }}z	foo-helloz-traverse variables with bracketed identifiersz2{{ site.data.menu[include.menu][include.locale] }}z	it works!datamenubar)r   locale)siteincludez*render the special built in variable 'now'z{{ now | date: '%d/%m/%Y' }}z%d/%m/%YF)r   r   r   standardz,render the special built in variable 'today'z{{ today | date: '%d/%m/%Y' }}z&render a default given a literal falsez{{ false | default: 'bar' }}zGrender a default given a literal false with 'allow false' equal to truez/{{ false | default: 'bar', allow_false: true }}falsezHrender a default given a literal false with 'allow false' equal to falsez0{{ false | default: 'bar', allow_false: false }}z:unexpected left value for the `join` filter passes throughz{{ 12 | join: '#' }}12z3render an output start sequence as a string literalz
{{ '{{' }}z{{z%access an undefined variable by indexz{{ nosuchthing[0] }}zrender a range objectz{{ (1..5) | join: '#' }}z	1#2#3#4#5z'render a range object that uses a floatz{{ (1.4..5) | join: '#' }}z-render a range object that uses an identifierz{{ (foo..5) | join: '#' }}z2#3#4#5   zreverse a rangez${{ (foo..5) | reverse | join: '#' }}z5#4#3#2z"chained bracketed identifier indexz{{ products[0].title }}shoeproductshatz)chained bracketed identifier index no dotz{{ products[0]title }}z&chained identifier dot separated indexz{{ products.0.title }}T)r   r   r   r   stricterrorz'bracketed variable resolves to a stringz{{ foo[something] }}goodbye)r	   	somethingzBbracketed variable resolves to a string without leading identifierz{{ [something] }})r"   r   z/nested bracketed variable resolving to a stringz{{ [list[settings.zero]] }}zero)listsettingsr	   )	__doc__datetimeliquid.golden.caser   nowstrftimedatetodaycases r.   r.   V/var/www/Matress/matenv/lib/python3.10/site-packages/liquid/golden/output_statement.py<module>   s    
 %*
06<B
HNXagmry             !  '  -  3  ;  A  I 