diff --git a/doc/testing.jax b/doc/testing.jax index 476cbda89..f2febfea9 100644 --- a/doc/testing.jax +++ b/doc/testing.jax @@ -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 @@ -68,10 +68,10 @@ test_feedinput({string}) *test_feedinput()* test_garbagecollect_now() *test_garbagecollect_now()* - garbagecollect() とほぼ同じであるが、この関数はガベージコレク - トを直ちに実行する。この関数を実行する場合は、構造体が内部に存 - 在しないようにするために直接呼び出す必要がある。また、この関数 - を呼び出す前に |v:testing| を設定する必要がある。 *E1142* + |garbagecollect()| とほぼ同じであるが、この関数はガベージコレ + クトを直ちに実行する。この関数を実行する場合は、構造体が内部に + 存在しないようにするために直接呼び出す必要がある。また、この関 + 数を呼び出す前に |v:testing| を設定する必要がある。 *E1142* これは、スタック上の変数が解放されるため、:def 関数から呼び出 された場合には動作しない。 @@ -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} が設定されたことを示すフラグをリセットする。 したがって、それはまだデフォルト値を持っているように見える。次 diff --git a/en/testing.txt b/en/testing.txt index 7d0402c1b..e6f4590cb 100644 --- a/en/testing.txt +++ b/en/testing.txt @@ -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 @@ -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* @@ -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: >