Render optimisation

This commit is contained in:
Adam Fowler
2021-03-18 10:55:55 +00:00
parent c560bd0fd9
commit 9b17bd6827
3 changed files with 46 additions and 40 deletions

View File

@@ -661,8 +661,8 @@ final class SpecSectionTests: XCTestCase {
func testVariables() throws {
let object: [String: Any] = ["foo": "bar"]
let template = #""{{#foo}} {{.}} is {{foo}} {{/foo}}""#
let expected = #"" bar is bar ""#
let template = #""{{#foo}}{{.}} is {{foo}}{{/foo}}""#
let expected = #""bar is bar""#
try test(object, template, expected)
}