Merge remote-tracking branch 'origin/main'

This commit is contained in:
Silas Oettinghaus
2024-10-07 08:24:08 +02:00
23 changed files with 1550 additions and 97 deletions

View File

@@ -0,0 +1,16 @@
classdef DC_Supply_test < matlab.unittest.TestCase
% Test class for DC_Supply
methods (Test)
function testExample(testCase)
% Example test case for DC_Supply
% Add your test code here
dc_supply = DC_supply("voltage",[0,9],"active",1);
dc_supply.set();
testCase.verifyTrue(true);
end
end
end

View File

@@ -1,10 +1,11 @@
function generateTests()
if ismac
cd('/Users/silasoettinghaus/Documents/MATLAB/imdd_simulation');
cd('/Users/silasoettinghaus/Documents/MATLAB/imdd_simulation');
else
end
% Define the root folders for classes and tests
classesFolder = 'Classes'; % Folder containing the class files
testsFolder = 'Tests'; % Folder where test files should be created