|
10 | 10 | /* Assert( expected value (Known Value), actual value(value under test)) */ |
11 | 11 |
|
12 | 12 | // const char *test_key = "sk-VT65uEtK8cUfB1KuEx0QT3BlbkFJHnIvsADF3rJw5-XXXXXX"; |
13 | | -// const char *model = "gpt-4o"; |
| 13 | +const char *model = "gpt-4o"; |
14 | 14 |
|
15 | 15 | #if TESTING_ON |
16 | | -// test(ChatBox_itializes_with_valid_values) { |
17 | | - |
18 | | -// ChatGPTuino chat{ 0, 0 }; |
19 | | -// chat.init(test_key, model); |
20 | | -// long testDocSize = 3056; //Based on Arduino JSON 6 Assistant |
21 | | -// assertEqual((const char *)model, (const char *)chat.model()); |
22 | | -// assertEqual((long)chat.maxTokens(), (long)MIN_TOKENS); |
23 | | -// assertEqual(chat.numMessages(), MIN_MESSAGES); |
24 | | -// assertEqual((long)(CHARS_PER_TOKEN * chat.maxTokens()), (long)chat.MAX_MESSAGE_LENGTH()); |
25 | | -// assertEqual(testDocSize, (long)chat.DYNAMIC_JSON_DOC_SIZE()); |
26 | | -// } |
| 16 | +test(ChatBox_itializes_with_valid_values) { |
| 17 | + |
| 18 | + ChatGPTuino chat{ 0, 0 }; |
| 19 | + chat.init(test_key, model); |
| 20 | + long testDocSize = 3056; //Based on Arduino JSON 6 Assistant |
| 21 | + assertEqual((const char *)model, (const char *)chat.model()); |
| 22 | + assertEqual((long)chat.maxTokens(), (long)MIN_TOKENS); |
| 23 | + assertEqual(chat.numMessages(), MIN_MESSAGES); |
| 24 | + assertEqual((long)(CHARS_PER_TOKEN * chat.maxTokens()), (long)chat.MAX_MESSAGE_LENGTH()); |
| 25 | + assertEqual(testDocSize, (long)chat.DYNAMIC_JSON_DOC_SIZE()); |
| 26 | +} |
27 | 27 |
|
28 | 28 | // test(init_allocates_space_for_message_contexts) { |
29 | 29 |
|
|
0 commit comments