Last active
December 7, 2016 01:40
-
-
Save elbrujohalcon/9b1946c6d7fd45b27758f3afc827503c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-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