Skip to content

Commit

Permalink
more tests for vn::RecognizeTextRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
yury committed Dec 5, 2024
1 parent b6b685c commit a74fe97
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cidre/src/vn/recognize_text_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ extern "C" {

#[cfg(test)]
mod tests {
use crate::vn;
use crate::{ns, vn};

#[test]
fn basics() {
Expand All @@ -134,5 +134,13 @@ mod tests {
assert!(request.automatically_detects_lang());

assert!(request.custom_words().is_empty());

// test if api throws...

request.set_min_text_height(-10.0);
assert_eq!(request.min_text_height(), -10.0);

request.set_recognition_langs(&ns::Array::new());
assert!(request.recognition_langs().is_empty());
}
}

0 comments on commit a74fe97

Please sign in to comment.