Fixed logic and tests

This commit is contained in:
Łukasz Kuczborski
2021-04-09 23:37:54 +02:00
parent 371a4737d9
commit 521a599a60
2 changed files with 2 additions and 4 deletions

View File

@@ -67,7 +67,7 @@ final class VariableTests: XCTestCase {
it("can resolve a string literal with one double quote") {
let variable = Variable("\"")
let result = try variable.resolve(self.context) as? String
try expect(result) == ""
try expect(result).to.beNil()
}
it("can resolve a string literal with single quotes") {
@@ -79,7 +79,7 @@ final class VariableTests: XCTestCase {
it("can resolve a string literal with one single quote") {
let variable = Variable("'")
let result = try variable.resolve(self.context) as? String
try expect(result) == ""
try expect(result).to.beNil()
}
it("can resolve an integer literal") {