lang: Quote printed strings

This quotes printed strings that contain special characters such as
newline. This changes the output of some tests, but makes future tests
that include a raw \n more appropriate.
This commit is contained in:
James Shubin
2019-04-23 20:32:45 -04:00
parent 8f1f5d33fd
commit 97d60ac98d
10 changed files with 194 additions and 193 deletions

View File

@@ -1,12 +1,12 @@
Edge: list(str(hey)) -> var(names) # names
Edge: str(hello) -> list(str(hello), str(world)) # 0
Edge: str(hey) -> list(str(hey)) # 0
Edge: str(world) -> list(str(hello), str(world)) # 1
Edge: list(str("hey")) -> var(names) # names
Edge: str("hello") -> list(str("hello"), str("world")) # 0
Edge: str("hey") -> list(str("hey")) # 0
Edge: str("world") -> list(str("hello"), str("world")) # 1
Vertex: list()
Vertex: list(str(hello), str(world))
Vertex: list(str(hey))
Vertex: str(hello)
Vertex: str(hey)
Vertex: str(name)
Vertex: str(world)
Vertex: list(str("hello"), str("world"))
Vertex: list(str("hey"))
Vertex: str("hello")
Vertex: str("hey")
Vertex: str("name")
Vertex: str("world")
Vertex: var(names)