| 30 | } |
| 31 | } |
| 32 | static void test_getset() |
| 33 | { |
| 34 | LDBS ldbs; |
| 35 | |
| 36 | uint32_t block1 = ldbs.put(Bytes{1}, 1); |
| 37 | uint32_t block2 = ldbs.put(Bytes{2}, 2); |
| 38 | assert(block1 != block2); |
| 39 | |
| 40 | assert(ldbs.get(block1) == Bytes{1}); |
| 41 | assert(ldbs.get(block2) == Bytes{2}); |
| 42 | } |
| 43 | |
| 44 | static void test_write() |
| 45 | { |