Skip to content

Commit

Permalink
snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
WeepingClown13 committed Oct 1, 2023
1 parent c5c1c8b commit e953e31
Show file tree
Hide file tree
Showing 3 changed files with 252 additions and 84 deletions.
56 changes: 56 additions & 0 deletions tools/hangar/__snapshots__/invalid.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,20 @@ error: Expected type to be \\"Array<str>\\", but got \\"MutArray<str>\\" instead
| ^^^^^^^^^^^^^^^ Expected type to be \\"Array<str>\\", but got \\"MutArray<str>\\" instead
error: Expected type to be \\"MutMap<num>\\", but got \\"Map<num>\\" instead
--> ../../../examples/tests/invalid/container_types.test.w:30:24
|
30 | let mm1: MutMap<num> = { \\"a\\" => 1, \\"b\\" => 2, \\"c\\" => 3 };
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Expected type to be \\"MutMap<num>\\", but got \\"Map<num>\\" instead
error: Unknown symbol \\"copyMut\\"
--> ../../../examples/tests/invalid/container_types.test.w:32:15
|
32 | let mm3 = mm2.copyMut();
| ^^^^^^^ Unknown symbol \\"copyMut\\"
Tests 1 failed (1)
Expand Down Expand Up @@ -1164,6 +1178,48 @@ exports[`immutable_container_types.test.w 1`] = `
| ^^^ Unknown symbol \\"set\\"
error: Expected type to be \\"Map<str>\\", but got \\"MutMap<str>\\" instead
--> ../../../examples/tests/invalid/immutable_container_types.test.w:6:20
|
6 | let m2: Map<str> = MutMap<str> {};
| ^^^^^^^^^^^^^^ Expected type to be \\"Map<str>\\", but got \\"MutMap<str>\\" instead
error: Expected type to be \\"bool\\", but got \\"str\\" instead
--> ../../../examples/tests/invalid/immutable_container_types.test.w:7:29
|
7 | let m3 = Map<bool> { \\"a\\" => \\"A\\" };
| ^^^ Expected type to be \\"bool\\", but got \\"str\\" instead
error: Unknown symbol \\"set\\"
--> ../../../examples/tests/invalid/immutable_container_types.test.w:9:4
|
9 | m4.set(\\"2\\", 3);
| ^^^ Unknown symbol \\"set\\"
error: Unknown symbol \\"copy\\"
--> ../../../examples/tests/invalid/immutable_container_types.test.w:10:13
|
10 | let m5 = m4.copy();
| ^^^^ Unknown symbol \\"copy\\"
error: Unknown symbol \\"delete\\"
--> ../../../examples/tests/invalid/immutable_container_types.test.w:11:4
|
11 | m4.delete(\\"1\\");
| ^^^^^^ Unknown symbol \\"delete\\"
error: Unknown symbol \\"clear\\"
--> ../../../examples/tests/invalid/immutable_container_types.test.w:12:4
|
12 | m4.clear();
| ^^^^^ Unknown symbol \\"clear\\"
Tests 1 failed (1)
Expand Down
Loading

0 comments on commit e953e31

Please sign in to comment.