( function )

凡例
対応コードあり
直接対応していないが代替の書き方あり
対応コードなし
-未確認
( .. )ローカライズまだ
Example Python
pytest
PHP
PHPUnit
Swift
Testing
Csharp
xunit
Bash
bats
Powershell
pester
C++
GoogleTest
JavaScript
Jest
Kotlin
jUnit
( function_definition ) func01(a, b) - func func01(_ a: Int, _ b: Int) -> Int - - - - - -
( param_with_default_value ) func01(a, b=2) - func func01(_ a: Int, _ b: Int = 2) -> Int - - - - - -
( param_with_keyword ) func01(a, b=2) - - - - - - - -
( returns_multi_value ) r1, r2 = func01(a, b) - - - - - - -
( return_can_be_omitted ) No - - - - - - - -
( variadic_args ) *args - args: T... - - - - - -
( variadic_keyword_args ) **args - - - - - - -
( spread_args ) func01(*args) - - - - - - -
( allow_trailing_comma_in_parameter_list ) Yes - Yes - - - - - -
( function_can_be_nested ) Yes - Yes - - - - - -
( labeled_parameter ) - - func func01(a: Int, b: Int) -> Int - - - - - -
( labeled_and_named_parameter ) - - func func01(labelA a: Int, labelB b: Int) -> Int - - - - - -
( inout_parameter ) - - inout, & - - - - - -
( return_can_be_omited ) - - - - - - - -
( function_overload_allowed ) - - Yes - - - - - -