Apparently there is a need to call clear classes before doing a test. What is this? Can you let the the test functions run without changing the state of the workspace? What I mean is sort of in a sandbox or iis it harmless to run clear classes?
see below what happened.
>> testAddNode
Starting test run with 2 test cases.
FF
FAILED in 0.013 seconds.
===== Test Case Failure =====
Location: D:\Dropbox\mymatlab\psycharo-factor-graph\code\cpp-factor-graph\matlab\tests\testAddNode.m
Name: testForward
D:\Dropbox\mymatlab\psycharo-factor-graph\code\cpp-factor-graph\matlab\tests\testAddNode.m at line 9
Cannot redefine class 'object' without a call to 'clear classes'.
===== Test Case Failure =====
Location: D:\Dropbox\mymatlab\psycharo-factor-graph\code\cpp-factor-graph\matlab\tests\testAddNode.m
Name: testBackward
D:\Dropbox\mymatlab\psycharo-factor-graph\code\cpp-factor-graph\matlab\tests\testAddNode.m at line 33
Cannot redefine class 'object' without a call to 'clear classes'.
>> clear classes
>> testAddNode
Starting test run with 2 test cases.
..
PASSED in 0.662 seconds.
Apparently there is a need to call
clear classes
before doing a test. What is this? Can you let the the test functions run without changing the state of the workspace? What I mean is sort of in a sandbox or iis it harmless to runclear classes
?see below what happened.