From 129a78a21b1e061b2f7a329707953eeb27271a37 Mon Sep 17 00:00:00 2001 From: Federico Felici <federico.felici@epfl.ch> Date: Tue, 9 Jun 2020 13:57:46 +0200 Subject: [PATCH] Add test of actualize method and of SCD main class --- tests/test_SCDclass.m | 18 ++++++++++++++++++ tests/test_expcodes.m | 4 ++++ 2 files changed, 22 insertions(+) create mode 100644 tests/test_SCDclass.m diff --git a/tests/test_SCDclass.m b/tests/test_SCDclass.m new file mode 100644 index 0000000..60c189f --- /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 dd45ee9..9b718d1 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 -- GitLab