From 4e2008e96efa0c92ace4c0f35083ede8664a4057 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 24 Jun 2019 00:09:42 +0200 Subject: [PATCH] more debugging --- cli/deno_dir.rs | 6 ++++++ core/module_specifier.rs | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/cli/deno_dir.rs b/cli/deno_dir.rs index efa26fa01147c7..1b9987d7517b61 100644 --- a/cli/deno_dir.rs +++ b/cli/deno_dir.rs @@ -1675,6 +1675,12 @@ mod tests { file_url!("/Users/rld/src/deno/hello.js"), add_root!("/Users/rld/src/deno/hello.js"), ), + ( + r"c:\Users\rld\src\deno\hello.js", + ".", + file_url!("/Users/rld/src/deno/hello.js"), + add_root!("/Users/rld/src/deno/hello.js"), + ), ( add_root!("/this/module/got/imported.js"), add_root!("/that/module/did/it.js"), diff --git a/core/module_specifier.rs b/core/module_specifier.rs index 24db3cbc32fb5f..0f85b6ed8cd25f 100644 --- a/core/module_specifier.rs +++ b/core/module_specifier.rs @@ -116,7 +116,13 @@ mod tests { ModuleSpecifier::resolve_root(r"C:/deno/tests/006_url_imports.ts") .unwrap() .to_string(), - "file:///c:/deno/tests/006_url_imports.ts", + "file:///C:/deno/tests/006_url_imports.ts", + ); + assert_eq!( + ModuleSpecifier::resolve_root(r"C:\deno\tests\006_url_imports.ts") + .unwrap() + .to_string(), + "file:///C:/deno/tests/006_url_imports.ts", ); } else { assert_eq!(