-
-
Notifications
You must be signed in to change notification settings - Fork 320
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
8f1f5d3
commit 97d60ac
Showing
10 changed files
with
194 additions
and
193 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
lang/interpret_test/TestAstFunc1/duplicate_resource.graph
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Edge: str(hello world) -> call:fmt.printf(str(hello world)) # a | ||
Vertex: call:fmt.printf(str(hello world)) | ||
Vertex: str(/tmp/foo) | ||
Vertex: str(/tmp/foo) | ||
Vertex: str(cowsay) | ||
Vertex: str(cowsay) | ||
Vertex: str(hello world) | ||
Vertex: str(hello world) | ||
Vertex: str(installed) | ||
Vertex: str(newest) | ||
Edge: str("hello world") -> call:fmt.printf(str("hello world")) # a | ||
Vertex: call:fmt.printf(str("hello world")) | ||
Vertex: str("/tmp/foo") | ||
Vertex: str("/tmp/foo") | ||
Vertex: str("cowsay") | ||
Vertex: str("cowsay") | ||
Vertex: str("hello world") | ||
Vertex: str("hello world") | ||
Vertex: str("installed") | ||
Vertex: str("newest") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
Vertex: call:fmt.printf(str(hello: %s), var(s)) | ||
Vertex: str(greeting) | ||
Vertex: str(hello: %s) | ||
Vertex: str(world) | ||
Edge: str("hello: %s") -> call:fmt.printf(str("hello: %s"), var(s)) # a | ||
Edge: str("world") -> var(s) # s | ||
Edge: var(s) -> call:fmt.printf(str("hello: %s"), var(s)) # b | ||
Vertex: call:fmt.printf(str("hello: %s"), var(s)) | ||
Vertex: str("greeting") | ||
Vertex: str("hello: %s") | ||
Vertex: str("world") | ||
Vertex: var(s) | ||
Edge: str(hello: %s) -> call:fmt.printf(str(hello: %s), var(s)) # a | ||
Edge: str(world) -> var(s) # s | ||
Edge: var(s) -> call:fmt.printf(str(hello: %s), var(s)) # b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Edge: call:os.is_debian() -> if(call:os.is_debian()) # c | ||
Edge: if(call:os.is_debian()) -> var(aaa) # aaa | ||
Edge: str(bbb) -> if(call:os.is_debian()) # a | ||
Edge: str(ccc) -> if(call:os.is_debian()) # b | ||
Edge: str("bbb") -> if(call:os.is_debian()) # a | ||
Edge: str("ccc") -> if(call:os.is_debian()) # b | ||
Vertex: call:os.is_debian() | ||
Vertex: if(call:os.is_debian()) | ||
Vertex: str(bbb) | ||
Vertex: str(ccc) | ||
Vertex: str(hello) | ||
Vertex: str("bbb") | ||
Vertex: str("ccc") | ||
Vertex: str("hello") | ||
Vertex: var(aaa) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
Edge: call:os.is_debian() -> if(call:os.is_debian()) # c | ||
Edge: if(call:os.is_debian()) -> var(aaa) # aaa | ||
Edge: str(bbb) -> if(call:os.is_debian()) # a | ||
Edge: str(ccc) -> if(call:os.is_debian()) # b | ||
Edge: str("bbb") -> if(call:os.is_debian()) # a | ||
Edge: str("ccc") -> if(call:os.is_debian()) # b | ||
Vertex: call:os.is_debian() | ||
Vertex: if(call:os.is_debian()) | ||
Vertex: str(bbb) | ||
Vertex: str(ccc) | ||
Vertex: str(hello) | ||
Vertex: str("bbb") | ||
Vertex: str("ccc") | ||
Vertex: str("hello") | ||
Vertex: var(aaa) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.