Skip to content

Commit 2ce193e

Browse files
committed
1 parent c544144 commit 2ce193e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

doc/eval.jax

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1981,7 +1981,7 @@ assert_equalfile({fname-one}, {fname-two})
19811981
数値 ファイルの内容が等しいことをテストする
19821982
assert_exception({error} [, {msg}])
19831983
数値 |v:exception|が{error}であるかテストする
1984-
assert_fails({cmd} [, {error}])
1984+
assert_fails({cmd} [, {error} [, {msg}]])
19851985
数値 {cmd}が失敗するかどうかテストする
19861986
assert_false({actual} [, {msg}])
19871987
数値 {actual}がfalseかどうかテストする
@@ -2431,7 +2431,7 @@ term_setkill({buf}, {how}) なし 端末のジョブを停止するためのシ
24312431
term_setrestore({buf}, {command}) なし 端末を復元するためのコマンドを設定する
24322432
term_setsize({buf}, {rows}, {cols})
24332433
なし 端末のサイズを設定する
2434-
term_start({cmd}, {options}) ジョブ 端末ウィンドウを開きジョブを実行する
2434+
term_start({cmd}, {options}) 数値 端末ウィンドウを開きジョブを実行する
24352435
term_wait({buf} [, {time}]) 数値 スクリーンが更新されるのを待つ
24362436
test_alloc_fail({id}, {countdown}, {repeat})
24372437
なし メモリの確保を失敗にさせる
@@ -2639,7 +2639,7 @@ assert_exception({error} [, {msg}]) *assert_exception()*
26392639
call assert_exception('E492:')
26402640
endtry
26412641

2642-
assert_fails({cmd} [, {error}]) *assert_fails()*
2642+
assert_fails({cmd} [, {error} [, {msg}]]) *assert_fails()*
26432643
{cmd}を実行しエラーを生成しなかった場合、|v:errors|にエラーメッ
26442644
セージを追加する。|assert-return| も参照。
26452645
{error}が渡された場合、|v:errmsg|の一部にマッチしなければなら

en/eval.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2038,7 +2038,8 @@ assert_equalfile({fname-one}, {fname-two})
20382038
Number assert file contents is equal
20392039
assert_exception({error} [, {msg}])
20402040
Number assert {error} is in v:exception
2041-
assert_fails({cmd} [, {error}]) Number assert {cmd} fails
2041+
assert_fails({cmd} [, {error} [, {msg}]])
2042+
Number assert {cmd} fails
20422043
assert_false({actual} [, {msg}])
20432044
Number assert {actual} is false
20442045
assert_inrange({lower}, {upper}, {actual} [, {msg}])
@@ -2461,7 +2462,7 @@ term_setkill({buf}, {how}) none set signal to stop job in terminal
24612462
term_setrestore({buf}, {command}) none set command to restore terminal
24622463
term_setsize({buf}, {rows}, {cols})
24632464
none set the size of a terminal
2464-
term_start({cmd}, {options}) Job open a terminal window and run a job
2465+
term_start({cmd}, {options}) Number open a terminal window and run a job
24652466
term_wait({buf} [, {time}]) Number wait for screen to be updated
24662467
test_alloc_fail({id}, {countdown}, {repeat})
24672468
none make memory allocation fail
@@ -2671,7 +2672,7 @@ assert_exception({error} [, {msg}]) *assert_exception()*
26712672
call assert_exception('E492:')
26722673
endtry
26732674
2674-
assert_fails({cmd} [, {error}]) *assert_fails()*
2675+
assert_fails({cmd} [, {error} [, {msg}]]) *assert_fails()*
26752676
Run {cmd} and add an error message to |v:errors| if it does
26762677
NOT produce an error. Also see |assert-return|.
26772678
When {error} is given it must match in |v:errmsg|.

0 commit comments

Comments
 (0)