Skip to content

Commit b4eb44a

Browse files
committed
Reorder test points for maintainability
Having the test points in alphabetic order makes it easier to visually compare with the file system and verify all example files are being tested.
1 parent e29e65c commit b4eb44a

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

tests/texampleTests.m

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -35,43 +35,15 @@ function testAnalyzeScientificPapersUsingFunctionCalls(~)
3535
AnalyzeScientificPapersUsingFunctionCalls;
3636
end
3737

38-
function testProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode(~)
39-
ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode;
40-
end
41-
42-
function testUsingDALLEToGenerateImages(~)
43-
UsingDALLEToGenerateImages;
44-
end
45-
46-
function testInformationRetrievalUsingOpenAIDocumentEmbedding(~)
47-
InformationRetrievalUsingOpenAIDocumentEmbedding;
48-
end
49-
50-
function testDescribeImagesUsingChatGPT(~)
51-
DescribeImagesUsingChatGPT;
52-
end
53-
54-
function testSummarizeLargeDocumentsUsingChatGPTandMATLAB(~)
55-
SummarizeLargeDocumentsUsingChatGPTandMATLAB;
38+
function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(testCase)
39+
testCase.verifyWarning(@AnalyzeSentimentinTextUsingChatGPTinJSONMode,...
40+
"llms:warningJsonInstruction");
5641
end
5742

5843
function testAnalyzeTextDataUsingParallelFunctionCallwithChatGPT(~)
5944
AnalyzeTextDataUsingParallelFunctionCallwithChatGPT;
6045
end
6146

62-
function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~)
63-
RetrievalAugmentedGenerationUsingChatGPTandMATLAB;
64-
end
65-
66-
function testUsingDALLEToEditImages(~)
67-
UsingDALLEToEditImages;
68-
end
69-
70-
function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(testCase)
71-
testCase.verifyWarning(@AnalyzeSentimentinTextUsingChatGPTinJSONMode,...
72-
"llms:warningJsonInstruction");
73-
end
74-
7547
function testCreateSimpleChatBot(testCase,ChatBotExample)
7648
% set up a fake input command, returning canned user prompts
7749
count = 0;
@@ -112,6 +84,34 @@ function testCreateSimpleChatBot(testCase,ChatBotExample)
11284
testCase.verifyEqual(count,find(prompts=="end",1));
11385
testCase.verifySize(messages.Messages,[1 2*(count-1)]);
11486
end
87+
88+
function testDescribeImagesUsingChatGPT(~)
89+
DescribeImagesUsingChatGPT;
90+
end
91+
92+
function testInformationRetrievalUsingOpenAIDocumentEmbedding(~)
93+
InformationRetrievalUsingOpenAIDocumentEmbedding;
94+
end
95+
96+
function testProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode(~)
97+
ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode;
98+
end
99+
100+
function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~)
101+
RetrievalAugmentedGenerationUsingChatGPTandMATLAB;
102+
end
103+
104+
function testSummarizeLargeDocumentsUsingChatGPTandMATLAB(~)
105+
SummarizeLargeDocumentsUsingChatGPTandMATLAB;
106+
end
107+
108+
function testUsingDALLEToEditImages(~)
109+
UsingDALLEToEditImages;
110+
end
111+
112+
function testUsingDALLEToGenerateImages(~)
113+
UsingDALLEToGenerateImages;
114+
end
115115
end
116116

117117
end

0 commit comments

Comments
 (0)