Minor Changes and Lab Preps
This commit is contained in:
16
Tests/05_Lab/DC_Supply_test.m
Normal file
16
Tests/05_Lab/DC_Supply_test.m
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user