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

Added --v8-options replacement #405

Merged
merged 4 commits into from
Jul 26, 2018
Merged

Added --v8-options replacement #405

merged 4 commits into from
Jul 26, 2018

Conversation

robbym
Copy link
Contributor

@robbym robbym commented Jul 24, 2018

src/main.rs Outdated
fn test_flag_parse_2() {
let js_args = set_flags(vec!["deno".to_string(), "--help".to_string()]);
assert!(js_args == vec!["deno".to_string(), "--help".to_string()]);
}
Copy link
Member

Choose a reason for hiding this comment

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

I'm not so happy with the huge v8 help output during the tests - it makes it hard to see what passed/failed. How about testing parse_core_args instead of set_flags?

Copy link
Member

Choose a reason for hiding this comment

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

Otherwise looks good!

Copy link
Member

@ry ry left a comment

Choose a reason for hiding this comment

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

LGTM - Thanks!

src/main.rs Outdated
@@ -125,22 +125,23 @@ impl Drop for Deno {

#[test]
fn test_flag_parse_1() {
Copy link
Member

Choose a reason for hiding this comment

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

please rename to test_parse_core_args_1

src/main.rs Outdated
assert!(js_args == vec!["deno".to_string()]);
let js_args =
parse_core_args(vec!["deno".to_string(), "--v8-options".to_string()]);
assert!(js_args == (vec!["deno".to_string(), "--help".to_string()], vec![]));
}

#[test]
fn test_flag_parse_2() {
Copy link
Member

@ry ry Jul 25, 2018

Choose a reason for hiding this comment

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

test_parse_core_args_2

@ry ry merged commit 180170d into denoland:master Jul 26, 2018
@robbym robbym deleted the flag_parse branch July 26, 2018 01:49
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.

None yet

2 participants