Skip to content

Commit 46a5a98

Browse files
committed
Update mdx tests
1 parent cdda288 commit 46a5a98

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

test/xref2/resolve/test.md

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ Simplest possible resolution:
143143
constraints = []};
144144
representation = None})];
145145
compiled = true; doc = []};
146-
expansion = None; linked = false; canonical = None; source_info = None}
146+
expansion = None; linked = false; canonical = None; source_info = None;
147+
shape = None; uid_to_id = <abstr>}
147148
```
148149

149150
Let's look at a marginally more complicated example. In this case, our type `t`
@@ -316,7 +317,8 @@ Basic resolution 2, environment lookup:
316317
constraints = []};
317318
representation = None})];
318319
compiled = true; doc = []};
319-
expansion = None; linked = false; canonical = None; source_info = None}
320+
expansion = None; linked = false; canonical = None; source_info = None;
321+
shape = None; uid_to_id = <abstr>}
320322
```
321323

322324

@@ -518,7 +520,8 @@ Basic resolution 3, module type:
518520
representation = ...});
519521
...];
520522
compiled = ...; doc = ...};
521-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
523+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
524+
shape = ...; uid_to_id = ...}
522525
```
523526

524527
This example is very similar but there is one more level of nesting of the modules:
@@ -720,7 +723,8 @@ Basic resolution 4, module type:
720723
canonical = ...; hidden = ...});
721724
...];
722725
compiled = ...; doc = ...};
723-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
726+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
727+
shape = ...; uid_to_id = ...}
724728
```
725729

726730
This example is rather more interesting:
@@ -955,7 +959,8 @@ and then we can look up the type `t`.
955959
compiled = ...; doc = ...})};
956960
...];
957961
compiled = ...; doc = ...};
958-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
962+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
963+
shape = ...; uid_to_id = ...}
959964
```
960965

961966
```ocaml
@@ -1161,7 +1166,8 @@ and then we can look up the type `t`.
11611166
compiled = ...; doc = ...})};
11621167
...];
11631168
compiled = ...; doc = ...};
1164-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
1169+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
1170+
shape = ...; uid_to_id = ...}
11651171
```
11661172

11671173
Ensure a substitution is taken into account during resolution:
@@ -1343,7 +1349,8 @@ Ensure a substitution is taken into account during resolution:
13431349
canonical = ...; hidden = ...});
13441350
...];
13451351
compiled = ...; doc = ...};
1346-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
1352+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
1353+
shape = ...; uid_to_id = ...}
13471354
```
13481355

13491356
Ensure a destructive substitution is taken into account during resolution:
@@ -1525,7 +1532,8 @@ Ensure a destructive substitution is taken into account during resolution:
15251532
canonical = ...; hidden = ...});
15261533
...];
15271534
compiled = ...; doc = ...};
1528-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
1535+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
1536+
shape = ...; uid_to_id = ...}
15291537
```
15301538

15311539
Resolve a module alias:
@@ -1685,7 +1693,8 @@ Resolve a module alias:
16851693
constraints = []};
16861694
representation = None})];
16871695
compiled = true; doc = ...};
1688-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
1696+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
1697+
shape = ...; uid_to_id = ...}
16891698
```
16901699

16911700
Resolve a module alias:
@@ -1844,7 +1853,8 @@ Resolve a module alias:
18441853
representation = ...});
18451854
...];
18461855
compiled = ...; doc = ...};
1847-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
1856+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
1857+
shape = ...; uid_to_id = ...}
18481858
```
18491859

18501860
Resolve a functor:
@@ -2025,7 +2035,8 @@ Resolve a functor:
20252035
canonical = ...; hidden = ...});
20262036
...];
20272037
compiled = ...; doc = ...};
2028-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
2038+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
2039+
shape = ...; uid_to_id = ...}
20292040
```
20302041

20312042
Resolve a functor:
@@ -2231,7 +2242,8 @@ Resolve a functor:
22312242
p_path = ...}))};
22322243
...];
22332244
compiled = ...; doc = ...};
2234-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
2245+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
2246+
shape = ...; uid_to_id = ...}
22352247
```
22362248

22372249
```ocaml skip
@@ -2447,5 +2459,6 @@ Functor app nightmare:
24472459
canonical = ...; hidden = ...});
24482460
...];
24492461
compiled = ...; doc = ...};
2450-
expansion = ...; linked = ...; canonical = ...; source_info = ...}
2462+
expansion = ...; linked = ...; canonical = ...; source_info = ...;
2463+
shape = ...; uid_to_id = ...}
24512464
```

0 commit comments

Comments
 (0)