this repo has no description

Duplicate module test

+34 -22
+3
test-package-compiler/cases/duplicate_module/gleam.toml
··· 1 + name = "importy" 2 + version = "0.1.0" 3 + target = "erlang"
+4
test-package-compiler/cases/duplicate_module/src/main.gleam
··· 1 + // There is another module with the same name in the `test` directory. 2 + pub fn main() { 3 + "Hello, Joe!" 4 + }
+4
test-package-compiler/cases/duplicate_module/test/main.gleam
··· 1 + // There is another module with the same name in the `src` directory. 2 + pub fn main() { 3 + "Hello, Joe!" 4 + }
-2
test-package-compiler/cases/import_cycle/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/imported_constants/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/imported_external_fns/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/imported_record_constructors/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/opaque_type_accessor/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/opaque_type_construct/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/opaque_type_destructure/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/src_importing_test/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/unknown_module_field_in_constant/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/unknown_module_field_in_expression/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
-2
test-package-compiler/cases/unknown_module_field_in_import/gleam.toml
··· 1 - # Distinguish between a module and a value with the same local name. 2 - # https://github.com/gleam-lang/gleam/issues/807 3 1 name = "importy" 4 2 version = "0.1.0" 5 3 target = "erlang"
+11
test-package-compiler/src/generated_tests.rs
··· 145 145 } 146 146 147 147 #[test] 148 + fn duplicate_module() { 149 + let output = 150 + crate::prepare("/Users/louis/src/gleam/gleam/test-package-compiler/cases/duplicate_module"); 151 + insta::assert_snapshot!( 152 + "duplicate_module", 153 + output, 154 + "/Users/louis/src/gleam/gleam/test-package-compiler/cases/duplicate_module" 155 + ); 156 + } 157 + 158 + #[test] 148 159 fn imported_external_fns() { 149 160 let output = 150 161 crate::prepare("/Users/louis/src/gleam/gleam/test-package-compiler/cases/imported_external_fns");
+12
test-package-compiler/src/snapshots/test_package_compiler__generated_tests__duplicate_module.snap
··· 1 + --- 2 + source: test-package-compiler/src/generated_tests.rs 3 + assertion_line: 151 4 + expression: /Users/louis/src/gleam/gleam/test-package-compiler/cases/duplicate_module 5 + --- 6 + error: Duplicate module 7 + 8 + The module `main` is defined multiple times. 9 + 10 + First: src/main.gleam 11 + Second: test/main.gleam 12 +
test-package-compiler/src/snapshots/test_package_compiler__generated_tests__src_importing_test.snap.new test-package-compiler/src/snapshots/test_package_compiler__generated_tests__src_importing_test.snap