rbmatlab 0.10.01
test/test_checkpointing.m
Go to the documentation of this file.
00001 function ok = test_checkpointing
00002   % executes some tests for the Checkpoint class
00003   %
00004   % Return values:
00005   %     ok: boolean flag indicating whether all tests passed
00006   clear classes;
00007 
00008   ok = true;
00009 
00010   % Check persistency feature of enable_auto_restore
00011   c1 = Greedy.Checkpoint;
00012   ok = ok && c1.enable_auto_restore;
00013   c2 = Greedy.Checkpoint;
00014   c2.enable_auto_restore = false;
00015   ok = ok && ~c1.enable_auto_restore;
00016 
All Classes Namespaces Files Functions Variables