QuickCheck
is a language for stating properties of programs.
?FORALL(X, nat(), X*X >= 0)
-module(kata). | |
-define(SIDES, 4). | |
-export([msg2rect/1]). | |
msg2rect(Message) -> | |
VChars = length(Message) div ?SIDES, | |
HChars = VChars + trunc(((length(Message) rem ?SIDES) / 2)), |