Skip to content

Commit 6dbae76

Browse files
committed
Expect the warning
We expect this example to throw a warning, and should test that. Also, without `expectWarning`, the test fails.
1 parent aae9205 commit 6dbae76

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/texampleTests.m

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,9 @@ function testUsingDALLEToEditImages(~)
6161
UsingDALLEToEditImages;
6262
end
6363

64-
function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(~)
65-
AnalyzeSentimentinTextUsingChatGPTinJSONMode;
64+
function testAnalyzeSentimentinTextUsingChatGPTinJSONMode(testCase)
65+
testCase.verifyWarning(@AnalyzeSentimentinTextUsingChatGPTinJSONMode,...
66+
"llms:warningJsonInstruction");
6667
end
6768
end
6869

0 commit comments

Comments
 (0)