File tree Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Expand file tree Collapse file tree 3 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -26,3 +26,7 @@ pub fn classify_nonstarters(c: char) -> Decomposition {
26
26
pub fn stream_safe ( s : & str ) -> String {
27
27
StreamSafe :: new ( s. chars ( ) ) . collect ( )
28
28
}
29
+
30
+ pub mod quick_check {
31
+ pub use crate :: quick_check:: * ;
32
+ }
Original file line number Diff line number Diff line change @@ -73,8 +73,6 @@ mod quick_check;
73
73
mod stream_safe;
74
74
mod tables;
75
75
76
- #[ cfg( test) ]
77
- mod test;
78
76
mod normalization_tests;
79
77
#[ doc( hidden) ]
80
78
pub mod __test_api;
Original file line number Diff line number Diff line change
1
+
1
2
// Copyright 2012-2015 The Rust Project Developers. See the COPYRIGHT
2
3
// file at the top-level directory of this distribution and at
3
4
// http://rust-lang.org/COPYRIGHT.
9
10
// except according to those terms.
10
11
11
12
13
+ extern crate unicode_normalization;
14
+
12
15
use std:: char;
13
- use super :: UnicodeNormalization ;
14
- use super :: char:: is_combining_mark;
16
+ use unicode_normalization :: UnicodeNormalization ;
17
+ use unicode_normalization :: char:: is_combining_mark;
15
18
16
19
17
20
#[ test]
@@ -97,7 +100,7 @@ fn test_nfkc() {
97
100
98
101
#[ test]
99
102
fn test_official ( ) {
100
- use normalization_tests :: NORMALIZATION_TESTS ;
103
+ use unicode_normalization :: __test_api :: NORMALIZATION_TESTS ;
101
104
macro_rules! normString {
102
105
( $method: ident, $input: expr) => { $input. $method( ) . collect:: <String >( ) }
103
106
}
@@ -161,8 +164,8 @@ fn test_official() {
161
164
162
165
#[ test]
163
166
fn test_quick_check ( ) {
164
- use normalization_tests :: NORMALIZATION_TESTS ;
165
- use quick_check;
167
+ use unicode_normalization :: __test_api :: NORMALIZATION_TESTS ;
168
+ use unicode_normalization :: __test_api :: quick_check;
166
169
for test in NORMALIZATION_TESTS {
167
170
assert ! ( quick_check:: is_nfc( test. nfc) ) ;
168
171
assert ! ( quick_check:: is_nfd( test. nfd) ) ;
You can’t perform that action at this time.
0 commit comments