You can already do quite a lot if you define your own assert function or command for this.
Ok, I now uploaded a plugin[1] that does this. Maybe somebody finds this useful too.
The handling of script local functions is suboptimal though, which is why I still think this should be integrated into the interpreter.
Regards, Thomas. [1] http://www.vim.org/scripts/script.php?script_id=1730
