Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name module using testset name #1

Merged
merged 1 commit into from
Jan 24, 2019
Merged

Conversation

oxinabox
Copy link
Contributor

I think this actually works.

julia> @eval module $(Symbol("a b")) end
Main.a b

@@ -12,7 +12,7 @@ macro safetestset(args...)
length(args) != 2 && throw(err)
name, expr = args
if name isa String
mod = gensym()
mod = gensym(name)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you explain the rationale here?

Copy link
Contributor Author

@oxinabox oxinabox Jan 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

More or less "why not"

Some improvements to stack trace readabilty Might occur

@YingboMa YingboMa merged commit a806c5d into YingboMa:master Jan 24, 2019
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.

2 participants