mllg / checkmate

Fast and versatile argument checks
https://mllg.github.io/checkmate/
Other
265 stars 30 forks source link

[Feature requrest] `assertBool` #239

Closed schalkdaniel closed 1 year ago

schalkdaniel commented 1 year ago

I was looking for a function like assertBool(x) which basically does the same as assertLogical(x, len = 1). As far as I understand, there are such pendants for assertNumber(x) and assertString(x) which is basically assertNumeric(x, len = 1) and assertCharacter(x, len = 1).

Would that be something worth adding?

tdeenes commented 1 year ago

See assertFlag