11#[ macro_use]
22extern crate lazy_static_include;
33
4- #[ macro_use]
5- extern crate slash_formatter;
6-
74#[ macro_use]
85extern crate assert_approx_eq;
96
107#[ test]
118fn include_str ( ) {
129 lazy_static_include_str ! {
13- TEST => concat_with_file_separator! ( "data" , " test.txt") ,
14- pub TEST2 => concat_with_file_separator! ( "data" , " test-2.txt") ,
10+ TEST => "data/ test.txt" ,
11+ pub TEST2 => "data/ test-2.txt" ,
1512 }
1613
1714 let _data: & ' static str = * TEST ;
@@ -23,8 +20,8 @@ fn include_str() {
2320#[ test]
2421fn include_bytes ( ) {
2522 lazy_static_include_bytes ! {
26- TEST => concat_with_file_separator! ( "data" , " test.txt") ,
27- pub TEST2 => concat_with_file_separator! ( "data" , " test-2.txt") ,
23+ TEST => "data/ test.txt" ,
24+ pub TEST2 => "data/ test-2.txt" ,
2825 }
2926
3027 let _data: & ' static [ u8 ] = * TEST ;
@@ -36,7 +33,7 @@ fn include_bytes() {
3633#[ test]
3734fn include_array_isize ( ) {
3835 lazy_static_include_array ! {
39- TEST : [ isize ; 5 ] => concat_with_file_separator! ( "data" , " isize_array.txt") ,
36+ TEST : [ isize ; 5 ] => "data/ isize_array.txt" ,
4037 }
4138
4239 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -49,7 +46,7 @@ fn include_array_isize() {
4946#[ test]
5047fn include_array_i8 ( ) {
5148 lazy_static_include_array ! {
52- TEST : [ i8 ; 5 ] => concat_with_file_separator! ( "data" , " i8_array.txt") ,
49+ TEST : [ i8 ; 5 ] => "data/ i8_array.txt" ,
5350 }
5451
5552 assert_eq ! ( 12 , TEST [ 0 ] ) ;
@@ -62,7 +59,7 @@ fn include_array_i8() {
6259#[ test]
6360fn include_array_i16 ( ) {
6461 lazy_static_include_array ! {
65- TEST : [ i16 ; 5 ] => concat_with_file_separator! ( "data" , " i16_array.txt") ,
62+ TEST : [ i16 ; 5 ] => "data/ i16_array.txt" ,
6663 }
6764
6865 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -75,7 +72,7 @@ fn include_array_i16() {
7572#[ test]
7673fn include_array_i32 ( ) {
7774 lazy_static_include_array ! {
78- TEST : [ i32 ; 5 ] => concat_with_file_separator! ( "data" , " i32_array.txt") ,
75+ TEST : [ i32 ; 5 ] => "data/ i32_array.txt" ,
7976 }
8077
8178 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -88,7 +85,7 @@ fn include_array_i32() {
8885#[ test]
8986fn include_array_i64 ( ) {
9087 lazy_static_include_array ! {
91- pub TEST : [ i64 ; 5 ] => concat_with_file_separator! ( "data" , " i64_array.txt") ,
88+ pub TEST : [ i64 ; 5 ] => "data/ i64_array.txt" ,
9289 }
9390
9491 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -101,7 +98,7 @@ fn include_array_i64() {
10198#[ test]
10299fn include_array_i128 ( ) {
103100 lazy_static_include_array ! {
104- pub TEST : [ i128 ; 5 ] => concat_with_file_separator! ( "data" , " i128_array.txt") ,
101+ pub TEST : [ i128 ; 5 ] => "data/ i128_array.txt" ,
105102 }
106103
107104 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -114,7 +111,7 @@ fn include_array_i128() {
114111#[ test]
115112fn include_array_usize ( ) {
116113 lazy_static_include_array ! {
117- pub TEST : [ usize ; 5 ] => concat_with_file_separator! ( "data" , " usize_array.txt") ,
114+ pub TEST : [ usize ; 5 ] => "data/ usize_array.txt" ,
118115 }
119116
120117 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -127,7 +124,7 @@ fn include_array_usize() {
127124#[ test]
128125fn include_array_u8 ( ) {
129126 lazy_static_include_array ! {
130- pub TEST : [ u8 ; 5 ] => concat_with_file_separator! ( "data" , " u8_array.txt") ,
127+ pub TEST : [ u8 ; 5 ] => "data/ u8_array.txt" ,
131128 }
132129
133130 assert_eq ! ( 12 , TEST [ 0 ] ) ;
@@ -140,7 +137,7 @@ fn include_array_u8() {
140137#[ test]
141138fn include_array_u16 ( ) {
142139 lazy_static_include_array ! {
143- TEST : [ u16 ; 5 ] => concat_with_file_separator! ( "data" , " u16_array.txt") ,
140+ TEST : [ u16 ; 5 ] => "data/ u16_array.txt" ,
144141 }
145142
146143 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -153,7 +150,7 @@ fn include_array_u16() {
153150#[ test]
154151fn include_array_u32 ( ) {
155152 lazy_static_include_array ! {
156- pub TEST : [ u32 ; 5 ] => concat_with_file_separator! ( "data" , " u32_array.txt") ,
153+ pub TEST : [ u32 ; 5 ] => "data/ u32_array.txt" ,
157154 }
158155
159156 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -166,7 +163,7 @@ fn include_array_u32() {
166163#[ test]
167164fn include_array_u64 ( ) {
168165 lazy_static_include_array ! {
169- TEST : [ u64 ; 5 ] => concat_with_file_separator! ( "data" , " u64_array.txt") ,
166+ TEST : [ u64 ; 5 ] => "data/ u64_array.txt" ,
170167 }
171168
172169 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -179,7 +176,7 @@ fn include_array_u64() {
179176#[ test]
180177fn include_array_u128 ( ) {
181178 lazy_static_include_array ! {
182- pub TEST : [ u128 ; 5 ] => concat_with_file_separator! ( "data" , " u128_array.txt") ,
179+ pub TEST : [ u128 ; 5 ] => "data/ u128_array.txt" ,
183180 }
184181
185182 assert_eq ! ( 123 , TEST [ 0 ] ) ;
@@ -192,7 +189,7 @@ fn include_array_u128() {
192189#[ test]
193190fn include_array_f32 ( ) {
194191 lazy_static_include_array ! {
195- pub TEST : [ f32 ; 5 ] => concat_with_file_separator! ( "data" , " f32_array.txt") ,
192+ pub TEST : [ f32 ; 5 ] => "data/ f32_array.txt" ,
196193 }
197194
198195 assert_approx_eq ! ( 123f32 , TEST [ 0 ] ) ;
@@ -205,7 +202,7 @@ fn include_array_f32() {
205202#[ test]
206203fn include_array_f64 ( ) {
207204 lazy_static_include_array ! {
208- pub TEST : [ f64 ; 5 ] => concat_with_file_separator! ( "data" , " f64_array.txt") ,
205+ pub TEST : [ f64 ; 5 ] => "data/ f64_array.txt" ,
209206 }
210207
211208 assert_approx_eq ! ( 123f64 , TEST [ 0 ] ) ;
@@ -218,7 +215,7 @@ fn include_array_f64() {
218215#[ test]
219216fn include_array_char ( ) {
220217 lazy_static_include_array ! {
221- pub TEST : [ char ; 3 ] => concat_with_file_separator! ( "data" , " char_array.txt") ,
218+ pub TEST : [ char ; 3 ] => "data/ char_array.txt" ,
222219 }
223220
224221 assert_eq ! ( 'a' , TEST [ 0 ] ) ;
@@ -229,7 +226,7 @@ fn include_array_char() {
229226#[ test]
230227fn include_array_bool ( ) {
231228 lazy_static_include_array ! {
232- pub TEST : [ bool ; 3 ] => concat_with_file_separator! ( "data" , " bool_array.txt") ,
229+ pub TEST : [ bool ; 3 ] => "data/ bool_array.txt" ,
233230 }
234231
235232 assert_eq ! ( false , TEST [ 0 ] ) ;
@@ -240,7 +237,7 @@ fn include_array_bool() {
240237#[ test]
241238fn include_array_string ( ) {
242239 lazy_static_include_array ! {
243- pub TEST : [ & ' static str ; 3 ] => concat_with_file_separator! ( "data" , " string_array.txt") ,
240+ pub TEST : [ & ' static str ; 3 ] => "data/ string_array.txt" ,
244241 }
245242
246243 assert_eq ! ( "Hi" , TEST [ 0 ] ) ;
0 commit comments