Fork of daniellemaywood.uk/gleam — Wasm codegen work
2

Configure Feed

Select the types of activity you want to include in your feed.

test: add test to assert that imports with slashes do not trigger the special error

+21
+16
compiler-core/src/parse/snapshots/gleam_core__parse__tests__doesnt_issue_special_error_for_pythonic_import_if_slash.snap
··· 1 + --- 2 + source: compiler-core/src/parse/tests.rs 3 + expression: import one/two.three 4 + --- 5 + ----- SOURCE CODE 6 + import one/two.three 7 + 8 + ----- ERROR 9 + error: Syntax error 10 + ┌─ /src/parse/error.gleam:1:16 11 + 12 + 1 │ import one/two.three 13 + │ ^^^^^ I was not expecting this 14 + 15 + Found a name, expected one of: 16 + - `{`
+5
compiler-core/src/parse/tests.rs
··· 1791 1791 fn special_error_for_pythonic_import() { 1792 1792 assert_module_error!("import gleam.io"); 1793 1793 } 1794 + 1795 + #[test] 1796 + fn doesnt_issue_special_error_for_pythonic_import_if_slash() { 1797 + assert_module_error!("import one/two.three"); 1798 + }