Skip to content

Commit bfbff68

Browse files
refactor: remove duplicate files
1 parent d19a194 commit bfbff68

File tree

3 files changed

+12
-184
lines changed

3 files changed

+12
-184
lines changed

more_tests/more_tests/credentials.h

Lines changed: 0 additions & 9 deletions
This file was deleted.

more_tests/more_tests/more_tests.ino

Lines changed: 0 additions & 163 deletions
This file was deleted.

tests/tests.ino

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@
1010
/* Assert( expected value (Known Value), actual value(value under test)) */
1111

1212
// const char *test_key = "sk-VT65uEtK8cUfB1KuEx0QT3BlbkFJHnIvsADF3rJw5-XXXXXX";
13-
// const char *model = "gpt-4o";
13+
const char *model = "gpt-4o";
1414

1515
#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+
}
2727

2828
// test(init_allocates_space_for_message_contexts) {
2929

0 commit comments

Comments
 (0)