From 98273f22f40c9acfbaf97cef64342cf6d47a1df5 Mon Sep 17 00:00:00 2001 From: Vassilis Papanastasiou Date: Tue, 7 May 2024 10:54:16 +0100 Subject: [PATCH] Create texampleTests.m --- tests/texampleTests.m | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tests/texampleTests.m diff --git a/tests/texampleTests.m b/tests/texampleTests.m new file mode 100644 index 0000000..8f79c66 --- /dev/null +++ b/tests/texampleTests.m @@ -0,0 +1,24 @@ +classdef texampleTests < matlab.unittest.TestCase +% Smoke level tests for the example .mlx files + +% Copyright 2024 The MathWorks, Inc. + + methods (TestClassSetup) + function saveEnvVar(testCase) + % Ensures key is not in environment variable for tests + openAIEnvVar = "OPENAI_KEY"; + key = getenv(openAIEnvVar); + unsetenv(openAIEnvVar); + testCase.addTeardown(@(x) setenv(openAIEnvVar, x), key); + end + end + + methods(Test) + % Test methods + + function testAnalyzeScientificPapersUsingFunctionCalls(~) + AnalyzeScientificPapersUsingFunctionCalls; + end + end + +end \ No newline at end of file