From 65cf020a6459479fb5fb15ddc1d6d314e03ec464 Mon Sep 17 00:00:00 2001 From: Paul-Elliot Date: Thu, 13 Jul 2023 12:40:38 +0200 Subject: [PATCH] Promote mdx tests --- test/xref2/resolve/test.md | 39 +++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/test/xref2/resolve/test.md b/test/xref2/resolve/test.md index ba8df513bf..579f2852fc 100644 --- a/test/xref2/resolve/test.md +++ b/test/xref2/resolve/test.md @@ -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` @@ -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 = []} ``` @@ -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: @@ -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: @@ -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 @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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: @@ -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 @@ -2447,5 +2459,6 @@ Functor app nightmare: canonical = ...; hidden = ...}); ...]; compiled = ...; doc = ...}; - expansion = ...; linked = ...; canonical = ...; source_info = ...} + expansion = ...; linked = ...; canonical = ...; source_info = ...; + search_assets = ...} ```