Skip to content

Commit

Permalink
adapt the tests for the new type
Browse files Browse the repository at this point in the history
  • Loading branch information
cpetig committed Feb 9, 2025
1 parent 18fb79d commit a0c1bc4
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 51 deletions.
5 changes: 1 addition & 4 deletions crates/wit-parser/tests/ui/multi-package-deps.wit.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,7 @@
{
"name": "l",
"kind": {
"list": [
3,
null
]
"list": 3
},
"owner": {
"interface": 2
Expand Down
5 changes: 1 addition & 4 deletions crates/wit-parser/tests/ui/random.wit.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@
{
"name": null,
"kind": {
"list": [
"u8",
null
]
"list": "u8"
},
"owner": null
}
Expand Down
5 changes: 1 addition & 4 deletions crates/wit-parser/tests/ui/shared-types.wit.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@
{
"name": null,
"kind": {
"list": [
"u8",
null
]
"list": "u8"
},
"owner": null
},
Expand Down
10 changes: 2 additions & 8 deletions crates/wit-parser/tests/ui/streams-and-futures.wit.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,7 @@
{
"name": null,
"kind": {
"list": [
"u8",
null
]
"list": "u8"
},
"owner": null
},
Expand Down Expand Up @@ -178,10 +175,7 @@
{
"name": null,
"kind": {
"list": [
"string",
null
]
"list": "string"
},
"owner": null
},
Expand Down
26 changes: 7 additions & 19 deletions crates/wit-parser/tests/ui/types.wit.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,7 @@
{
"name": "t12",
"kind": {
"list": [
"char",
null
]
"list": "char"
},
"owner": {
"interface": 0
Expand Down Expand Up @@ -638,30 +635,21 @@
{
"name": null,
"kind": {
"list": [
33,
null
]
"list": 33
},
"owner": null
},
{
"name": null,
"kind": {
"list": [
44,
null
]
"list": 44
},
"owner": null
},
{
"name": "t45",
"kind": {
"list": [
45,
null
]
"list": 45
},
"owner": {
"interface": 0
Expand Down Expand Up @@ -715,7 +703,7 @@
{
"name": "t51a",
"kind": {
"list": [
"fixed-size-list": [
"u32",
4
]
Expand All @@ -727,7 +715,7 @@
{
"name": null,
"kind": {
"list": [
"fixed-size-list": [
"u32",
4
]
Expand All @@ -737,7 +725,7 @@
{
"name": "t51b",
"kind": {
"list": [
"fixed-size-list": [
53,
2
]
Expand Down
10 changes: 2 additions & 8 deletions crates/wit-parser/tests/ui/world-top-level-funcs.wit.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@
{
"name": null,
"kind": {
"list": [
"u32",
null
]
"list": "u32"
},
"owner": null
},
Expand All @@ -72,10 +69,7 @@
{
"name": null,
"kind": {
"list": [
1,
null
]
"list": 1
},
"owner": null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,7 @@
{
"name": null,
"kind": {
"list": [
"u32",
null
]
"list": "u32"
},
"owner": null
},
Expand Down

0 comments on commit a0c1bc4

Please sign in to comment.