aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/sort_spec.lua
Commit message (Collapse)AuthorAge
* eval: Silence PVS/V547: E882 may be triggeredZyX2018-04-15
| | | | | | | | | | I failed to deduce why analyzer thinks E882 may not be triggered, though conditions for triggering it are strange: it would trigger E882 only in the single case “function returned non-number”. Cases “function thrown exception”, or “built-in sorter encountered error” will neither yield E882 nor stop sort()/uniq(). Note though that searching test code revealed that neither E702 nor E882 are not tested anywhere.
* eval: Move get_tv_lnum and get_tv_float to eval/typval.hZyX2017-03-29
Additionally - Rename former tv_get_float to tv_get_float_chk due to name conflict (former get_tv_float is better suited for being tv_get_float). - Add E907 error to get_tv_float() and test that it is being raised when appropriate.