Projects STRLCPY cfonts Commits 21c92d5a
🤬
  • ■ ■ ■ ■ ■
    rust/tests/end-to-end_test.rs
    skipped 29 lines
    30 30   let no_color_val = if test.no_color { Some(appendix) } else { None };
    31 31   
    32 32   temp_env::with_vars(vec![("FORCE_COLOR", force_color_val), ("NO_COLOR", no_color_val)], || {
    33  - let output =
    34  - Command::cargo_bin("cfonts").unwrap().args(&test.args).output().expect("failed to execute process");
     33 + let rust_output =
     34 + Command::cargo_bin("cfonts").unwrap().args(&test.args).output().expect("failed to execute rust process");
     35 + let mut nodejs_args = test.args.clone();
     36 + nodejs_args.insert(0, "../nodejs/bin/index.js".to_string());
     37 + let nodejs_output = Command::new("node").args(nodejs_args).output().expect("failed to execute nodejs process");
    35 38   
    36  - assert_eq!(String::from_utf8_lossy(&output.stdout).to_string() + appendix, test.fixture.clone() + appendix);
     39 + assert_eq!(
     40 + String::from_utf8_lossy(&rust_output.stdout).to_string() + appendix,
     41 + test.fixture.clone() + appendix
     42 + );
     43 + assert_eq!(
     44 + String::from_utf8_lossy(&nodejs_output.stdout).to_string() + appendix,
     45 + test.fixture.clone() + appendix
     46 + );
    37 47   });
    38 48   }
    39 49   }
    skipped 1893 lines
Please wait...
Page is in error, reload to recover