| 1 |
Description: Disable unavailable dependency detone and related test |
| 2 |
Forwarded: not-needed |
| 3 |
Last-Update: 2024-10-16 |
| 4 |
--- a/src/lib.rs |
| 5 |
+++ b/src/lib.rs |
| 6 |
@@ -3218,3 +3218,3 @@ |
| 7 |
use super::*; |
| 8 |
|
| 9 |
+ //use detone::IterDecomposeVietnamese; |
| 10 |
use encoding_rs::IBM866; |
| 11 |
@@ -3233,3 +3233,3 @@ |
| 12 |
use encoding_rs::WINDOWS_1257; |
| 13 |
|
| 14 |
+ //use encoding_rs::WINDOWS_1258; |
| 15 |
use encoding_rs::WINDOWS_874; |
| 16 |
@@ -3246,3 +3246,3 @@ |
| 17 |
fn check(input: &str, encoding: &'static Encoding) { |
| 18 |
|
| 19 |
+ /*let orthographic; |
| 20 |
let (bytes, _, _) = if encoding == WINDOWS_1258 { |
| 21 |
@@ -3254,5 +3254,5 @@ |
| 22 |
} else { |
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
+ encoding.encode(input); |
| 27 |
+ };*/ |
| 28 |
+ check_bytes(&encoding.encode(input).0, encoding); |
| 29 |
} |
| 30 |
@@ -3434,2 +3434,3 @@ |
| 31 |
#[test] |
| 32 |
+ #[cfg(any())] // dependency detone unavailable |
| 33 |
fn test_vi() { |
| 34 |
--- a/Cargo.toml |
| 35 |
+++ b/Cargo.toml |
| 36 |
@@ -45,4 +45,4 @@ |
| 37 |
optional = true |
| 38 |
|
| 39 |
|
| 40 |
+#[dev-dependencies.detone] |
| 41 |
+#version = "1.0.0" |
| 42 |
|