Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
kcl →

assertIs

Asserts that a value is the boolean value true.

assertIs(
  actual: bool,
  error?: String,
): ()

Arguments

NameTypeDescriptionRequired
actualboolValue to check. If this is the boolean value true, assert passes. Otherwise it fails.Yes
errorStringIf the value was false, the program will terminate with this error messageNo

Returns

()

Examples

kclIsFun = true
assertIs(kclIsFun)

Rendered example of assertIs 0