Skip to content

Commit

Permalink
Expect the warning
Browse files Browse the repository at this point in the history
We expect this example to throw a warning, and should test that. Also, without
`expectWarning`, the test fails.
  • Loading branch information
ccreutzi committed Jun 6, 2024
1 parent aae9205 commit 6dbae76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/texampleTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ function testUsingDALLEToEditImages(~)
UsingDALLEToEditImages;
end

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

Expand Down

0 comments on commit 6dbae76

Please sign in to comment.