Browse Source

Added a test for #208 (#303)

pull/305/head
Iban Eguia 4 years ago committed by GitHub
parent
commit
38db4dc316
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      boa/src/exec/tests.rs

13
boa/src/exec/tests.rs

@ -15,6 +15,19 @@ fn empty_let_decl_undefined() {
assert_eq!(exec(scenario), pass);
}
#[test]
fn semicolon_expression_stop() {
let scenario = r#"
var a = 1;
+ 1;
a
"#;
let pass = String::from("1");
assert_eq!(exec(scenario), pass);
}
#[test]
fn empty_var_decl_undefined() {
let scenario = r#"

Loading…
Cancel
Save