rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
test_checkpointing.m
Go to the documentation of this file.
1 function ok = test_checkpointing
2  % executes some tests for the Checkpoint class
3  %
4  % Return values:
5  % ok: boolean flag indicating whether all tests passed
6 
7  ok = true;
8 
9  % Check persistency feature of enable_storing
10  c1 = Greedy.Checkpoint();
11  ok = ok && c1.enable_storing;
12  c2 = Greedy.Checkpoint();
13  c2.enable_storing = false;
14  ok = ok && ~c1.enable_storing;
15