Skip to content

Commit

Permalink
Fix some test cases
Browse files Browse the repository at this point in the history
Why do they change?
  • Loading branch information
messense committed Mar 22, 2022
1 parent e49a768 commit f5276d8
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion bindings/python/src/decoders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ mod test {
let py_meta = py_dec.get_as_subtype().unwrap();
let gil = Python::acquire_gil();
assert_eq!(
"tokenizers.decoders.Metaspace",
"Metaspace",
py_meta.as_ref(gil.python()).get_type().name().unwrap()
);
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ mod test {
let py_bpe = py_model.get_as_subtype().unwrap();
let gil = Python::acquire_gil();
assert_eq!(
"tokenizers.models.BPE",
"BPE",
py_bpe.as_ref(gil.python()).get_type().name().unwrap()
);
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/normalizers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ mod test {
let py_nfc = py_norm.get_as_subtype().unwrap();
let gil = Python::acquire_gil();
assert_eq!(
"tokenizers.normalizers.NFC",
"NFC",
py_nfc.as_ref(gil.python()).get_type().name().unwrap()
);
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/pre_tokenizers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ mod test {
let py_wsp = py_norm.get_as_subtype().unwrap();
let gil = Python::acquire_gil();
assert_eq!(
"tokenizers.pre_tokenizers.Whitespace",
"Whitespace",
py_wsp.as_ref(gil.python()).get_type().name().unwrap()
);
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/processors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ mod test {
let py_bert = py_proc.get_as_subtype().unwrap();
let gil = Python::acquire_gil();
assert_eq!(
"tokenizers.processors.BertProcessing",
"BertProcessing",
py_bert.as_ref(gil.python()).get_type().name().unwrap()
);
}
Expand Down
2 changes: 1 addition & 1 deletion bindings/python/src/trainers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -868,7 +868,7 @@ mod tests {
let py_bpe = py_trainer.get_as_subtype().unwrap();
let gil = Python::acquire_gil();
assert_eq!(
"tokenizers.trainers.BpeTrainer",
"BpeTrainer",
py_bpe.as_ref(gil.python()).get_type().name().unwrap()
);
}
Expand Down

0 comments on commit f5276d8

Please sign in to comment.