stencilproject / Stencil

Stencil is a simple and powerful template language for Swift.
https://stencil.fuller.li
BSD 2-Clause "Simplified" License
2.34k stars 223 forks source link

fixed resolving variable as string literal #168

Closed ilyapuchka closed 6 years ago

ilyapuchka commented 6 years ago

Resolves #159

For some reason in unit tests Variable.resolve method returns String in this case but in the app on iOS simulator it results in Swift.Substring (which is actually expected) and then check for String type in EqualityExpression fails.