Skip to content

Update testing.{txt,jax} #2010

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions doc/testing.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*testing.txt* For Vim バージョン 9.1. Last change: 2024 Jul 18
*testing.txt* For Vim バージョン 9.1. Last change: 2025 Mar 25


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -68,10 +68,10 @@ test_feedinput({string}) *test_feedinput()*


test_garbagecollect_now() *test_garbagecollect_now()*
garbagecollect() とほぼ同じであるが、この関数はガベージコレク
トを直ちに実行する。この関数を実行する場合は、構造体が内部に存
在しないようにするために直接呼び出す必要がある。また、この関数
を呼び出す前に |v:testing| を設定する必要がある。 *E1142*
|garbagecollect()| とほぼ同じであるが、この関数はガベージコレ
クトを直ちに実行する。この関数を実行する場合は、構造体が内部に
存在しないようにするために直接呼び出す必要がある。また、この関
数を呼び出す前に |v:testing| を設定する必要がある。 *E1142*
これは、スタック上の変数が解放されるため、:def 関数から呼び出
された場合には動作しない。

Expand Down Expand Up @@ -367,6 +367,11 @@ test_null_string() *test_null_string()*

戻り値の型: |String|

test_null_tuple() *test_null_tuple()*
null の |Tuple| を返す。これはテストのみに使われる。

戻り値の型: |Tuple|

test_option_not_set({name}) *test_option_not_set()*
オプション {name} が設定されたことを示すフラグをリセットする。
したがって、それはまだデフォルト値を持っているように見える。次
Expand Down
9 changes: 7 additions & 2 deletions en/testing.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*testing.txt* For Vim version 9.1. Last change: 2024 Jul 18
*testing.txt* For Vim version 9.1. Last change: 2025 Mar 25


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -68,7 +68,7 @@ test_feedinput({string}) *test_feedinput()*


test_garbagecollect_now() *test_garbagecollect_now()*
Like garbagecollect(), but executed right away. This must
Like |garbagecollect()|, but executed right away. This must
only be called directly to avoid any structure to exist
internally, and |v:testing| must have been set before calling
any function. *E1142*
Expand Down Expand Up @@ -364,6 +364,11 @@ test_null_string() *test_null_string()*

Return type: |String|

test_null_tuple() *test_null_tuple()*
Return a |Tuple| that is null. Only useful for testing.

Return type: |Tuple|

test_option_not_set({name}) *test_option_not_set()*
Reset the flag that indicates option {name} was set. Thus it
looks like it still has the default value. Use like this: >
Expand Down