Steps to replicate the issue (include links if applicable):
- Please see test case https://www.wikifunctions.org/view/en/Z13458 (“Contains non-Boolean”)
- The function (“are all false” https://www.wikifunctions.org/view/en/Z13445) specifies a Boolean list as input but a function returning a list can be one of the items in that list.
What happens?:
The function executes without error but different implementations pass or fail differently. In particular, a Composition testing for the presence of not(False) fails to identify the (non-Boolean) list as not being False https://www.wikifunctions.org/view/en/Z13457
What should have happened instead?:
It should not be possible to add a list as an element in a Boolean list, so it should not be possible to add a function that returns a list.
If it is possible to add such a function, it should not evaluate without an error.
In any event, a list should not be considered to be equivalent to Boolean False. (In this Test case, the list is specified to contain the string “not a Boolean”.)
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):