This question is a follow-up question to an earlier question asked.
I tried to write my own library for assert. Here is the code;
library(title="TestLibrary", overlay=true)
export assert(bool condition, string error_msg) =>
if (condition == false)
runtime.error(error_msg)
When I tried to run it with a test code TestLibrary.assert(false, "OwnLibTestError")
, it did not work. I did not get any error.
The assert implementation looks fine to me. What is wrong with the code?
I am using pine-script v5