Skip to content

Commit

Permalink
Promote mdx tests
Browse files Browse the repository at this point in the history
  • Loading branch information
panglesd committed Jul 13, 2023
1 parent 75db58e commit 65cf020
Showing 1 changed file with 26 additions and 13 deletions.
39 changes: 26 additions & 13 deletions test/xref2/resolve/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,8 @@ Simplest possible resolution:
constraints = []};
representation = None})];
compiled = true; doc = []};
expansion = None; linked = false; canonical = None; source_info = None}
expansion = None; linked = false; canonical = None; source_info = None;
search_assets = []}
```

Let's look at a marginally more complicated example. In this case, our type `t`
Expand Down Expand Up @@ -316,7 +317,8 @@ Basic resolution 2, environment lookup:
constraints = []};
representation = None})];
compiled = true; doc = []};
expansion = None; linked = false; canonical = None; source_info = None}
expansion = None; linked = false; canonical = None; source_info = None;
search_assets = []}
```


Expand Down Expand Up @@ -518,7 +520,8 @@ Basic resolution 3, module type:
representation = ...});
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

This example is very similar but there is one more level of nesting of the modules:
Expand Down Expand Up @@ -720,7 +723,8 @@ Basic resolution 4, module type:
canonical = ...; hidden = ...});
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

This example is rather more interesting:
Expand Down Expand Up @@ -955,7 +959,8 @@ and then we can look up the type `t`.
compiled = ...; doc = ...})};
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

```ocaml
Expand Down Expand Up @@ -1161,7 +1166,8 @@ and then we can look up the type `t`.
compiled = ...; doc = ...})};
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

Ensure a substitution is taken into account during resolution:
Expand Down Expand Up @@ -1343,7 +1349,8 @@ Ensure a substitution is taken into account during resolution:
canonical = ...; hidden = ...});
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

Ensure a destructive substitution is taken into account during resolution:
Expand Down Expand Up @@ -1525,7 +1532,8 @@ Ensure a destructive substitution is taken into account during resolution:
canonical = ...; hidden = ...});
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

Resolve a module alias:
Expand Down Expand Up @@ -1685,7 +1693,8 @@ Resolve a module alias:
constraints = []};
representation = None})];
compiled = true; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

Resolve a module alias:
Expand Down Expand Up @@ -1844,7 +1853,8 @@ Resolve a module alias:
representation = ...});
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

Resolve a functor:
Expand Down Expand Up @@ -2025,7 +2035,8 @@ Resolve a functor:
canonical = ...; hidden = ...});
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

Resolve a functor:
Expand Down Expand Up @@ -2231,7 +2242,8 @@ Resolve a functor:
p_path = ...}))};
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

```ocaml skip
Expand Down Expand Up @@ -2447,5 +2459,6 @@ Functor app nightmare:
canonical = ...; hidden = ...});
...];
compiled = ...; doc = ...};
expansion = ...; linked = ...; canonical = ...; source_info = ...}
expansion = ...; linked = ...; canonical = ...; source_info = ...;
search_assets = ...}
```

0 comments on commit 65cf020

Please sign in to comment.