diff --git a/tests/test_SCDclass.m b/tests/test_SCDclass.m new file mode 100644 index 0000000000000000000000000000000000000000..60c189f11030e9fd67cd9a4251d58f543dc724b5 --- /dev/null +++ b/tests/test_SCDclass.m @@ -0,0 +1,18 @@ +classdef test_SCDclass < matlab.unittest.TestCase + % test file for SCD interface class + + properties + expcode = 1; + shot = 65668; + end + + methods(Test) + function test_load(testCase) + SCD.load(testCase.expcode); + end + + function test_init(testCase) + SCD.init(testCase.expcode,testCase.shot); + end + end +end \ No newline at end of file diff --git a/tests/test_expcodes.m b/tests/test_expcodes.m index dd45ee96296c044aff64bd11afe5f75bc8bc3062..9b718d1917f87d202f34d678129104315d3cdb1e 100644 --- a/tests/test_expcodes.m +++ b/tests/test_expcodes.m @@ -73,6 +73,10 @@ classdef test_expcodes < matlab.unittest.TestCase testCase.expcode_obj.callinits; end + function test_actualize(testCase) + testCase.expcode_obj.actualize(testCase.shot); + end + function test_expcode_compile_nodes(testCase) % compile each node separately first