Skip to content

Commit

Permalink
Reorder test points for maintainability
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ccreutzi committed Jun 21, 2024
1 parent e29e65c commit b4eb44a
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions tests/texampleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,43 +35,15 @@ function testAnalyzeScientificPapersUsingFunctionCalls(~)
AnalyzeScientificPapersUsingFunctionCalls;
end

function testProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode(~)
ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode;
end

function testUsingDALLEToGenerateImages(~)
UsingDALLEToGenerateImages;
end

function testInformationRetrievalUsingOpenAIDocumentEmbedding(~)
InformationRetrievalUsingOpenAIDocumentEmbedding;
end

function testDescribeImagesUsingChatGPT(~)
DescribeImagesUsingChatGPT;
end

function testSummarizeLargeDocumentsUsingChatGPTandMATLAB(~)
SummarizeLargeDocumentsUsingChatGPTandMATLAB;
function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(testCase)
testCase.verifyWarning(@AnalyzeSentimentinTextUsingChatGPTinJSONMode,...
"llms:warningJsonInstruction");
end

function testAnalyzeTextDataUsingParallelFunctionCallwithChatGPT(~)
AnalyzeTextDataUsingParallelFunctionCallwithChatGPT;
end

function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~)
RetrievalAugmentedGenerationUsingChatGPTandMATLAB;
end

function testUsingDALLEToEditImages(~)
UsingDALLEToEditImages;
end

function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(testCase)
testCase.verifyWarning(@AnalyzeSentimentinTextUsingChatGPTinJSONMode,...
"llms:warningJsonInstruction");
end

function testCreateSimpleChatBot(testCase,ChatBotExample)
% set up a fake input command, returning canned user prompts
count = 0;
Expand Down Expand Up @@ -112,6 +84,34 @@ function testCreateSimpleChatBot(testCase,ChatBotExample)
testCase.verifyEqual(count,find(prompts=="end",1));
testCase.verifySize(messages.Messages,[1 2*(count-1)]);
end

function testDescribeImagesUsingChatGPT(~)
DescribeImagesUsingChatGPT;
end

function testInformationRetrievalUsingOpenAIDocumentEmbedding(~)
InformationRetrievalUsingOpenAIDocumentEmbedding;
end

function testProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode(~)
ProcessGeneratedTextinRealTimebyUsingChatGPTinStreamingMode;
end

function testRetrievalAugmentedGenerationUsingChatGPTandMATLAB(~)
RetrievalAugmentedGenerationUsingChatGPTandMATLAB;
end

function testSummarizeLargeDocumentsUsingChatGPTandMATLAB(~)
SummarizeLargeDocumentsUsingChatGPTandMATLAB;
end

function testUsingDALLEToEditImages(~)
UsingDALLEToEditImages;
end

function testUsingDALLEToGenerateImages(~)
UsingDALLEToGenerateImages;
end
end

end
Expand Down

0 comments on commit b4eb44a

Please sign in to comment.