Skip to content

Commit 98273f2

Browse files
committed
Create texampleTests.m
1 parent 2eb2199 commit 98273f2

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

tests/texampleTests.m

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
classdef texampleTests < matlab.unittest.TestCase
2+
% Smoke level tests for the example .mlx files
3+
4+
% Copyright 2024 The MathWorks, Inc.
5+
6+
methods (TestClassSetup)
7+
function saveEnvVar(testCase)
8+
% Ensures key is not in environment variable for tests
9+
openAIEnvVar = "OPENAI_KEY";
10+
key = getenv(openAIEnvVar);
11+
unsetenv(openAIEnvVar);
12+
testCase.addTeardown(@(x) setenv(openAIEnvVar, x), key);
13+
end
14+
end
15+
16+
methods(Test)
17+
% Test methods
18+
19+
function testAnalyzeScientificPapersUsingFunctionCalls(~)
20+
AnalyzeScientificPapersUsingFunctionCalls;
21+
end
22+
end
23+
24+
end

0 commit comments

Comments
 (0)