Skip to content

(fix) remove only last extension#105

Open
joshgoebel wants to merge 1 commit intowren-lang:mainfrom
joshgoebel:fix_file_ext_removal
Open

(fix) remove only last extension#105
joshgoebel wants to merge 1 commit intowren-lang:mainfrom
joshgoebel:fix_file_ext_removal

Conversation

@joshgoebel
Copy link
Contributor

Test case:

  • ./hello_world.wren
  • ./hello_world.spec.wren

The spec imports hello_world so that it can test it, but this
fails because they are both shortened to hello_world inside
the CLI and this silently breaks the import for some reason.

I'm not sure if this is intentional or a bug but it seems the
wrong behavior to me.

Should this be enhanced to just remove .wren instead of just
removing the first extension it seens or is this adequate for
now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant