mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
update filenames to new rules
This commit is contained in:
parent
2b64123dbb
commit
d08bda6b01
1 changed files with 25 additions and 25 deletions
|
@ -323,7 +323,7 @@ fn import_transitive_alias() {
|
|||
// with variables in the importee
|
||||
let modules = vec![
|
||||
(
|
||||
"RBTree",
|
||||
"RBTree.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface RBTree exposes [RedBlackTree, empty] imports []
|
||||
|
@ -341,7 +341,7 @@ fn import_transitive_alias() {
|
|||
),
|
||||
),
|
||||
(
|
||||
"Other",
|
||||
"Other.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface Other exposes [empty] imports [RBTree]
|
||||
|
@ -626,7 +626,7 @@ fn ingested_file_bytes() {
|
|||
#[test]
|
||||
fn parse_problem() {
|
||||
let modules = vec![(
|
||||
"Main",
|
||||
"Main.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface Main exposes [main] imports []
|
||||
|
@ -641,7 +641,7 @@ fn parse_problem() {
|
|||
report,
|
||||
indoc!(
|
||||
"
|
||||
── UNFINISHED LIST in tmp/parse_problem/Main ───────────────────────────────────
|
||||
── UNFINISHED LIST in tmp/parse_problem/Main.roc ───────────────────────────────
|
||||
|
||||
I am partway through started parsing a list, but I got stuck here:
|
||||
|
||||
|
@ -707,7 +707,7 @@ fn ingested_file_not_found() {
|
|||
#[test]
|
||||
fn platform_does_not_exist() {
|
||||
let modules = vec![(
|
||||
"Main",
|
||||
"main.roc",
|
||||
indoc!(
|
||||
r#"
|
||||
app "example"
|
||||
|
@ -753,7 +753,7 @@ fn platform_parse_error() {
|
|||
),
|
||||
),
|
||||
(
|
||||
"Main",
|
||||
"main.roc",
|
||||
indoc!(
|
||||
r#"
|
||||
app "hello-world"
|
||||
|
@ -797,7 +797,7 @@ fn platform_exposes_main_return_by_pointer_issue() {
|
|||
),
|
||||
),
|
||||
(
|
||||
"Main",
|
||||
"main.roc",
|
||||
indoc!(
|
||||
r#"
|
||||
app "hello-world"
|
||||
|
@ -818,7 +818,7 @@ fn platform_exposes_main_return_by_pointer_issue() {
|
|||
fn opaque_wrapped_unwrapped_outside_defining_module() {
|
||||
let modules = vec![
|
||||
(
|
||||
"Age",
|
||||
"Age.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface Age exposes [Age] imports []
|
||||
|
@ -828,7 +828,7 @@ fn opaque_wrapped_unwrapped_outside_defining_module() {
|
|||
),
|
||||
),
|
||||
(
|
||||
"Main",
|
||||
"Main.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface Main exposes [twenty, readAge] imports [Age.{ Age }]
|
||||
|
@ -847,7 +847,7 @@ fn opaque_wrapped_unwrapped_outside_defining_module() {
|
|||
err,
|
||||
indoc!(
|
||||
r"
|
||||
── OPAQUE TYPE DECLARED OUTSIDE SCOPE in ...apped_outside_defining_module/Main ─
|
||||
── OPAQUE TYPE DECLARED OUTSIDE SCOPE in ...d_outside_defining_module/Main.roc ─
|
||||
|
||||
The unwrapped opaque type Age referenced here:
|
||||
|
||||
|
@ -861,7 +861,7 @@ fn opaque_wrapped_unwrapped_outside_defining_module() {
|
|||
|
||||
Note: Opaque types can only be wrapped and unwrapped in the module they are defined in!
|
||||
|
||||
── OPAQUE TYPE DECLARED OUTSIDE SCOPE in ...apped_outside_defining_module/Main ─
|
||||
── OPAQUE TYPE DECLARED OUTSIDE SCOPE in ...d_outside_defining_module/Main.roc ─
|
||||
|
||||
The unwrapped opaque type Age referenced here:
|
||||
|
||||
|
@ -875,7 +875,7 @@ fn opaque_wrapped_unwrapped_outside_defining_module() {
|
|||
|
||||
Note: Opaque types can only be wrapped and unwrapped in the module they are defined in!
|
||||
|
||||
── UNUSED IMPORT in tmp/opaque_wrapped_unwrapped_outside_defining_module/Main ──
|
||||
── UNUSED IMPORT in ...aque_wrapped_unwrapped_outside_defining_module/Main.roc ─
|
||||
|
||||
Nothing from Age is used in this module.
|
||||
|
||||
|
@ -910,7 +910,7 @@ fn issue_2863_module_type_does_not_exist() {
|
|||
),
|
||||
),
|
||||
(
|
||||
"Main",
|
||||
"main.roc",
|
||||
indoc!(
|
||||
r#"
|
||||
app "test"
|
||||
|
@ -930,7 +930,7 @@ fn issue_2863_module_type_does_not_exist() {
|
|||
report,
|
||||
indoc!(
|
||||
"
|
||||
── UNRECOGNIZED NAME in tmp/issue_2863_module_type_does_not_exist/Main ─────────
|
||||
── UNRECOGNIZED NAME in tmp/issue_2863_module_type_does_not_exist/main.roc ─────
|
||||
|
||||
Nothing is named `DoesNotExist` in this scope.
|
||||
|
||||
|
@ -971,7 +971,7 @@ fn import_builtin_in_platform_and_check_app() {
|
|||
),
|
||||
),
|
||||
(
|
||||
"Main",
|
||||
"main.roc",
|
||||
indoc!(
|
||||
r#"
|
||||
app "test"
|
||||
|
@ -991,7 +991,7 @@ fn import_builtin_in_platform_and_check_app() {
|
|||
#[test]
|
||||
fn module_doesnt_match_file_path() {
|
||||
let modules = vec![(
|
||||
"Age",
|
||||
"Age.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface NotAge exposes [Age] imports []
|
||||
|
@ -1006,7 +1006,7 @@ fn module_doesnt_match_file_path() {
|
|||
err,
|
||||
indoc!(
|
||||
r"
|
||||
── WEIRD MODULE NAME in tmp/module_doesnt_match_file_path/Age ──────────────────
|
||||
── WEIRD MODULE NAME in tmp/module_doesnt_match_file_path/Age.roc ──────────────
|
||||
|
||||
This module name does not correspond with the file path it is defined
|
||||
in:
|
||||
|
@ -1026,7 +1026,7 @@ fn module_doesnt_match_file_path() {
|
|||
#[test]
|
||||
fn module_cyclic_import_itself() {
|
||||
let modules = vec![(
|
||||
"Age",
|
||||
"Age.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface Age exposes [] imports [Age]
|
||||
|
@ -1039,7 +1039,7 @@ fn module_cyclic_import_itself() {
|
|||
err,
|
||||
indoc!(
|
||||
r"
|
||||
── IMPORT CYCLE in tmp/module_cyclic_import_itself/Age ─────────────────────────
|
||||
── IMPORT CYCLE in tmp/module_cyclic_import_itself/Age.roc ─────────────────────
|
||||
|
||||
I can't compile Age because it depends on itself through the following
|
||||
chain of module imports:
|
||||
|
@ -1062,7 +1062,7 @@ fn module_cyclic_import_itself() {
|
|||
fn module_cyclic_import_transitive() {
|
||||
let modules = vec![
|
||||
(
|
||||
"Age",
|
||||
"Age.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface Age exposes [] imports [Person]
|
||||
|
@ -1070,7 +1070,7 @@ fn module_cyclic_import_transitive() {
|
|||
),
|
||||
),
|
||||
(
|
||||
"Person",
|
||||
"Person.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface Person exposes [] imports [Age]
|
||||
|
@ -1150,7 +1150,7 @@ fn nested_module_has_incorrect_name() {
|
|||
#[test]
|
||||
fn module_interface_with_qualified_import() {
|
||||
let modules = vec![(
|
||||
"A",
|
||||
"A.roc",
|
||||
indoc!(
|
||||
r"
|
||||
interface A exposes [] imports [b.T]
|
||||
|
@ -1163,7 +1163,7 @@ fn module_interface_with_qualified_import() {
|
|||
err,
|
||||
indoc!(
|
||||
r#"
|
||||
The package shorthand 'b' that you are using in the 'imports' section of the header of module 'tmp/module_interface_with_qualified_import/A' doesn't exist.
|
||||
The package shorthand 'b' that you are using in the 'imports' section of the header of module 'tmp/module_interface_with_qualified_import/A.roc' doesn't exist.
|
||||
Check that package shorthand is correct or reference the package in an 'app' or 'package' header.
|
||||
This module is an interface, because of a bug in the compiler we are unable to directly typecheck interface modules with package imports so this error may not be correct. Please start checking at an app, package or platform file that imports this file."#
|
||||
),
|
||||
|
@ -1174,7 +1174,7 @@ fn module_interface_with_qualified_import() {
|
|||
#[test]
|
||||
fn app_missing_package_import() {
|
||||
let modules = vec![(
|
||||
"Main",
|
||||
"main.roc",
|
||||
indoc!(
|
||||
r#"
|
||||
app "example"
|
||||
|
@ -1192,7 +1192,7 @@ fn app_missing_package_import() {
|
|||
err,
|
||||
indoc!(
|
||||
r#"
|
||||
The package shorthand 'notpack' that you are using in the 'imports' section of the header of module 'tmp/app_missing_package_import/Main' doesn't exist.
|
||||
The package shorthand 'notpack' that you are using in the 'imports' section of the header of module 'tmp/app_missing_package_import/main.roc' doesn't exist.
|
||||
Check that package shorthand is correct or reference the package in an 'app' or 'package' header."#
|
||||
),
|
||||
"\n{}",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue