( functional )
Legend
| → | Has corresponding code |
| → | No direct match, but an alternative exists |
| → | No corresponding code |
| - | TODO |
| ( .. ) | Not localized |
| Example | Python pytest |
PHP PHPUnit |
Swift Testing |
Csharp xunit |
Bash bats |
Powershell pester |
C++ GoogleTest |
JavaScript Jest |
Kotlin jUnit |
|---|---|---|---|---|---|---|---|---|---|
| ( map_with_comprehension ) | [x for x in items] | - | - | - | - | - | - | - | - |
| ( map_with_lambda ) | → | - | - | items.Select(x => ..) | - | - | - | - | - |
| ( map_with_named_function ) | → | - | - | items.Select(FuncName) | - | - | - | - | - |
| ( filter_with_comprehension ) | [x for x in items if ...] | - | - | - | - | - | - | - | - |
| ( filter_with_lambda ) | filter(lambda ..) | - | - | items.Where(x => ..) | - | - | - | - | - |
| ( filter_with_named_function ) | filter(fn, items) | - | - | items.Where(FuncName) | - | - | - | - | - |
| ( example_exclude_empty_elements ) | just use filter/comprehension | - | - | just use filter | - | - | - | - | - |
| ( example_trim_trailing_empty_elements ) | not functional | - | - | use FindLastIndex | - | - | - | - | - |
| ( example_quote_and_join ) | → | - | - | → | - | - | - | - | - |
| ( all_satisfy ) | - | - | - | items.All() | - | - | - | - | - |
| ( all_satisfy_when_empty ) | - | - | - | True | - | - | - | - | - |
| ( any_satisfy ) | - | - | - | items.Any() | - | - | - | - | - |
| ( any_satisfy_when_empty ) | - | - | - | False | - | - | - | - | - |