January 2019
Intermediate to advanced
376 pages
8h 49m
English
| Generator | Data Generated | Sample |
|---|---|---|
any() | Any Erlang term PropEr can produce | Any of the samples below |
atom() | Erlang atoms | ’ós43Úrcá\200’ |
binary() | Binary data aligned on bytes | <<2,203,162,42,84,141>> |
binary(Len) | Binary data of fixed length Len, in bytes | <<98,126,144,175,175>> |
bitstring() | Binary data without byte alignment | <<10,74,2:3>> |
bitstring(Len) | Binary data of fixed length Len, in bits | <<11:5>> |
boolean() | Atoms true or false. Also bool() | true, false |
char() | Character codepoint, between 0 and 1114111 inclusively | 23 |
choose(Min, Max) | Any integer between Min and Max inclusively | choose(1, 1000) => 596 |
fixed_list([Type]) | A list where all entries match a generator from the list of arguments | fixed_list([boolean(), byte(), atom()]) => [true,2,b] |
float() ... |
Read now
Unlock full access