diff options
author | Mohammad Sulaiman <mohammad.sulaiman@exalt.ps> | 2024-10-15 01:04:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 15:04:18 -0700 |
commit | 8dbe77dd29a3791db58fda392dea45d8249b6bc9 (patch) | |
tree | 1fb57b9d4cbad21455afee71937a17ab6804315c /tests/integration | |
parent | 48cbf85add1a9a5c3e583c68c80d16420e606502 (diff) |
fix(console/ext/repl): support using parseFloat() (#25900)
Fixes #21428
Co-authored-by: tannal <tannal2409@gmail.com>
Diffstat (limited to 'tests/integration')
-rw-r--r-- | tests/integration/repl_tests.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/integration/repl_tests.rs b/tests/integration/repl_tests.rs index 4e00398ce..9eceb2f05 100644 --- a/tests/integration/repl_tests.rs +++ b/tests/integration/repl_tests.rs @@ -255,6 +255,20 @@ fn console_log() { console.write_line("'world'"); console.expect("\"world\""); }); + + // https://github.com/denoland/deno/issues/21428 + let (out, err) = util::run_and_collect_output_with_args( + true, + vec![ + "repl", + "--eval-file=./../specs/repl/console_log/093_console_log_format.js", + ], + None, + None, + false, + ); + assert_contains!(out, "0.5"); + assert!(err.is_empty()); } #[test] |