summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorEvan Jones <evan.q.jones@gmail.com>2023-08-17 19:54:44 -0400
committerGitHub <noreply@github.com>2023-08-17 19:54:44 -0400
commit604b8bdfa6320bbcb018eebcc1252dfede603c6b (patch)
tree8de41b4550f47633f77e6e8cdd81a9437395b427 /tests
parent10151bee2e38b5711335c4a38f6ca93b50223acf (diff)
Fix unicode in grammars (fixes #2501) (#2553)
* Fix unicode in grammars (fixes #2501) * add more comments * fix test-llama-grammar
Diffstat (limited to 'tests')
-rw-r--r--tests/test-llama-grammar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-llama-grammar.cpp b/tests/test-llama-grammar.cpp
index f98c6531..81c31e9e 100644
--- a/tests/test-llama-grammar.cpp
+++ b/tests/test-llama-grammar.cpp
@@ -199,7 +199,7 @@ int main()
uint32_t *cp = new uint32_t[2]; // dynamically allocate memory for code_point
cp[0] = 37 + i;
cp[1] = 0;
- next_candidates[i] = {i, cp};
+ next_candidates[i] = {i, cp, {}};
}
std::vector<std::vector<std::pair<uint32_t, uint16_t>>> expected_reject = {