mirror of
https://github.com/openai/harmony.git
synced 2025-08-22 16:17:08 -04:00
fix tests on windows
This commit is contained in:
parent
2fc90b29ef
commit
eaa1be0286
1 changed files with 2 additions and 0 deletions
|
@ -83,6 +83,8 @@ fn test_simple_convo_with_effort() {
|
|||
for encoding_name in ENCODINGS {
|
||||
let encoding = load_harmony_encoding(encoding_name).unwrap();
|
||||
for (effort, expected_text, use_instruction) in test_cases {
|
||||
// on windows, we need to replace \r\n with \n
|
||||
let expected_text = expected_text.replace("\r\n", "\n");
|
||||
let expected_tokens = encoding
|
||||
.tokenizer
|
||||
.encode(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue