Skip to content

Commit

Permalink
update test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Thomson committed Mar 14, 2017
1 parent c6e1a4e commit 655ef3b
Show file tree
Hide file tree
Showing 18 changed files with 1,074 additions and 976 deletions.
52 changes: 51 additions & 1 deletion fixtures/expressions/addition/addition.json
Original file line number Diff line number Diff line change
@@ -1 +1,51 @@
{"kind":"binary","left":{"kind":"expression","position":{"column":0,"filename":"","line":0,"offset":0},"type":"identifier","value":{"kind":"ident","position":{"column":0,"filename":"","line":0,"offset":0},"value":"ill"}},"operator":"+","position":{"column":0,"filename":"","line":0,"offset":0},"right":{"kind":"expression","position":{"column":0,"filename":"","line":0,"offset":0},"type":"identifier","value":{"kind":"ident","position":{"column":0,"filename":"","line":0,"offset":0},"value":"matic"}},"type":"expression"}
{
"left" : {
"type" : "identifier",
"kind" : "expression",
"position" : {
"column" : 0,
"offset" : 0,
"line" : 0,
"filename" : ""
},
"value" : {
"kind" : "ident",
"position" : {
"filename" : "",
"offset" : 0,
"line" : 0,
"column" : 0
},
"value" : "ill"
}
},
"operator" : "+",
"right" : {
"value" : {
"value" : "matic",
"kind" : "ident",
"position" : {
"filename" : "",
"line" : 0,
"offset" : 0,
"column" : 0
}
},
"kind" : "expression",
"position" : {
"offset" : 0,
"line" : 0,
"column" : 0,
"filename" : ""
},
"type" : "identifier"
},
"position" : {
"column" : 0,
"line" : 0,
"offset" : 0,
"filename" : ""
},
"kind" : "binary",
"type" : "expression"
}
54 changes: 30 additions & 24 deletions fixtures/expressions/chancast/chan.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,60 @@
"type" : "cast",
"target" : {
"kind" : "expression",
"type" : "identifier",
"position" : {
"line" : 0,
"offset" : 0,
"filename" : "",
"column" : 0,
"filename" : ""
"offset" : 0
},
"value" : {
"position" : {
"filename" : "",
"offset" : 0,
"column" : 0,
"filename" : "",
"line" : 0
},
"kind" : "ident",
"value" : "foo"
},
"type" : "identifier"
},
"position" : {
"line" : 0,
"filename" : "",
"offset" : 0,
"column" : 0
"value" : "foo",
"kind" : "ident"
}
},
"kind" : "expression",
"coerced-to" : {
"position" : {
"filename" : "",
"line" : 0,
"column" : 0,
"offset" : 0
},
"value" : {
"type" : "identifier",
"kind" : "type",
"value" : {
"kind" : "ident",
"value" : "int",
"position" : {
"line" : 0,
"filename" : "",
"offset" : 0,
"column" : 0
"column" : 0,
"line" : 0,
"filename" : ""
},
"value" : "int"
"kind" : "ident"
},
"kind" : "type",
"position" : {
"line" : 0,
"filename" : "",
"column" : 0,
"offset" : 0
"offset" : 0,
"line" : 0,
"filename" : ""
}
},
"direction" : "both",
"kind" : "type",
"direction" : "both",
"type" : "chan"
},
"kind" : "expression",
"position" : {
"line" : 0,
"filename" : "",
"offset" : 0,
"column" : 0
}
}
60 changes: 30 additions & 30 deletions fixtures/expressions/doublequalifier/double.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
{
"kind" : "expression",
"field" : {
"value" : "baz",
"kind" : "ident",
"position" : {
"filename" : "",
"offset" : 0,
"line" : 0,
"column" : 0
}
},
"type" : "selector",
"target" : {
"position" : {
"line" : 0,
"column" : 0,
"filename" : "",
"offset" : 0,
"line" : 0
"offset" : 0
},
"kind" : "expression",
"type" : "identifier",
"value" : {
"value" : "bar",
"kind" : "ident",
"qualifier" : {
"position" : {
"column" : 0,
"filename" : "",
"line" : 0,
"offset" : 0
}
"offset" : 0,
"line" : 0
},
"kind" : "ident",
"value" : "foo"
},
"kind" : "expression",
"qualifier" : {
"value" : {
"value" : "bar",
"kind" : "ident",
"position" : {
"column" : 0,
"filename" : "",
"offset" : 0,
"line" : 0,
"column" : 0
},
"value" : "foo",
"kind" : "ident"
"line" : 0
}
}
},
"type" : "selector",
"position" : {
"column" : 0,
"offset" : 0,
"line" : 0,
"filename" : "",
"column" : 0
}
"line" : 0
},
"field" : {
"value" : "baz",
"position" : {
"line" : 0,
"column" : 0,
"offset" : 0,
"filename" : ""
},
"kind" : "ident"
},
"kind" : "expression"
}
28 changes: 14 additions & 14 deletions fixtures/expressions/logicalor/logicalor.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
{
"position" : {
"offset" : 0,
"line" : 0,
"column" : 0,
"filename" : ""
},
"type" : "expression",
"right" : {
"type" : "BOOL",
"value" : "true",
"kind" : "literal",
"position" : {
"offset" : 0,
"column" : 0,
"line" : 0,
"filename" : ""
}
},
"value" : "true",
"type" : "BOOL",
"kind" : "literal"
},
"position" : {
"column" : 0,
"offset" : 0,
"filename" : "",
"line" : 0
},
"left" : {
"type" : "BOOL",
"position" : {
"offset" : 0,
"filename" : "",
"column" : 0,
"filename" : "",
"line" : 0
},
"value" : "false",
"type" : "BOOL",
"kind" : "literal"
},
"kind" : "binary",
"operator" : "||",
"type" : "expression"
"kind" : "binary"
}
Loading

0 comments on commit 655ef3b

Please sign in to comment.