mirror of
https://github.com/openai/harmony.git
synced 2025-08-23 01:17:09 -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 {
|
for encoding_name in ENCODINGS {
|
||||||
let encoding = load_harmony_encoding(encoding_name).unwrap();
|
let encoding = load_harmony_encoding(encoding_name).unwrap();
|
||||||
for (effort, expected_text, use_instruction) in test_cases {
|
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
|
let expected_tokens = encoding
|
||||||
.tokenizer
|
.tokenizer
|
||||||
.encode(
|
.encode(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue