Skip to content

Instantly share code, notes, and snippets.

@elbrujohalcon
Last active December 7, 2016 01:40
Show Gist options
  • Save elbrujohalcon/9b1946c6d7fd45b27758f3afc827503c to your computer and use it in GitHub Desktop.
Save elbrujohalcon/9b1946c6d7fd45b27758f3afc827503c to your computer and use it in GitHub Desktop.
-module(kvs).
-export([test/0]).
test() ->
[ catch test_creation()
, catch test_store_find()
, catch test_store_delete_find()
, … % more function calls like these
].
test_creation() ->
KVS = kvs:new(),
not_found = kvs:find(k, KVS),
not_found = kvs:find(x, KVS),
ok.
test_store_find() ->
KVS = kvs:new(),
KVSWithK = kvs:store(k, v, KVS),
v = kvs:find(k, KVSWithK),
ok.
… % more functions like the ones above here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment