mirror of
https://github.com/denoland/deno
synced 2024-10-13 03:22:31 +00:00
Format.
This commit is contained in:
parent
3a6d4e6260
commit
393f751a27
|
@ -5,7 +5,7 @@ import * as dispatch from "./dispatch";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Truncates or extends the specified file synchronously,
|
* Truncates or extends the specified file synchronously,
|
||||||
* updating the size of this file to become size.
|
* updating the size of this file to become size.
|
||||||
*
|
*
|
||||||
* import { truncateSync } from "deno";
|
* import { truncateSync } from "deno";
|
||||||
*
|
*
|
||||||
|
@ -17,7 +17,7 @@ export function truncateSync(name: string, len?: number): void {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Truncates or extends the specified file,
|
* Truncates or extends the specified file,
|
||||||
* updating the size of this file to become size.
|
* updating the size of this file to become size.
|
||||||
*
|
*
|
||||||
* import { truncate } from "deno";
|
* import { truncate } from "deno";
|
||||||
*
|
*
|
||||||
|
|
|
@ -193,8 +193,10 @@ fn v8_set_flags_preprocess(args: Vec<String>) -> (Vec<String>, Vec<String>) {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_v8_set_flags_preprocess_1() {
|
fn test_v8_set_flags_preprocess_1() {
|
||||||
let js_args =
|
let js_args = v8_set_flags_preprocess(vec![
|
||||||
v8_set_flags_preprocess(vec!["deno".to_string(), "--v8-options".to_string()]);
|
"deno".to_string(),
|
||||||
|
"--v8-options".to_string(),
|
||||||
|
]);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
js_args,
|
js_args,
|
||||||
(vec!["deno".to_string(), "--help".to_string()], vec![])
|
(vec!["deno".to_string(), "--help".to_string()], vec![])
|
||||||
|
@ -203,7 +205,8 @@ fn test_v8_set_flags_preprocess_1() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_v8_set_flags_preprocess_2() {
|
fn test_v8_set_flags_preprocess_2() {
|
||||||
let js_args = v8_set_flags_preprocess(vec!["deno".to_string(), "--help".to_string()]);
|
let js_args =
|
||||||
|
v8_set_flags_preprocess(vec!["deno".to_string(), "--help".to_string()]);
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
js_args,
|
js_args,
|
||||||
(vec!["deno".to_string()], vec!["--help".to_string()])
|
(vec!["deno".to_string()], vec!["--help".to_string()])
|
||||||
|
|
Loading…
Reference in a new issue