22// the start of a long because there is no valid value to return.
33#[ test]
44fn to_long_stdio ( ) {
5- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "-" ] ) ;
5+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "-" ] ) ;
66 let mut cursor = raw. cursor ( ) ;
77 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
88 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -14,7 +14,7 @@ fn to_long_stdio() {
1414
1515#[ test]
1616fn to_long_escape ( ) {
17- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "--" ] ) ;
17+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "--" ] ) ;
1818 let mut cursor = raw. cursor ( ) ;
1919 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
2020 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -28,7 +28,7 @@ fn to_long_escape() {
2828
2929#[ test]
3030fn to_long_no_value ( ) {
31- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "--long" ] ) ;
31+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "--long" ] ) ;
3232 let mut cursor = raw. cursor ( ) ;
3333 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
3434 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -42,7 +42,7 @@ fn to_long_no_value() {
4242
4343#[ test]
4444fn to_long_with_empty_value ( ) {
45- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "--long=" ] ) ;
45+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "--long=" ] ) ;
4646 let mut cursor = raw. cursor ( ) ;
4747 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
4848 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -56,7 +56,7 @@ fn to_long_with_empty_value() {
5656
5757#[ test]
5858fn to_long_with_value ( ) {
59- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "--long=hello" ] ) ;
59+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "--long=hello" ] ) ;
6060 let mut cursor = raw. cursor ( ) ;
6161 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
6262 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -70,7 +70,7 @@ fn to_long_with_value() {
7070
7171#[ test]
7272fn to_short_stdio ( ) {
73- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "-" ] ) ;
73+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "-" ] ) ;
7474 let mut cursor = raw. cursor ( ) ;
7575 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
7676 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -83,7 +83,7 @@ fn to_short_stdio() {
8383
8484#[ test]
8585fn to_short_escape ( ) {
86- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "--" ] ) ;
86+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "--" ] ) ;
8787 let mut cursor = raw. cursor ( ) ;
8888 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
8989 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -95,7 +95,7 @@ fn to_short_escape() {
9595
9696#[ test]
9797fn to_short_long ( ) {
98- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "--long" ] ) ;
98+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "--long" ] ) ;
9999 let mut cursor = raw. cursor ( ) ;
100100 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
101101 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -107,7 +107,7 @@ fn to_short_long() {
107107
108108#[ test]
109109fn to_short ( ) {
110- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "-short" ] ) ;
110+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "-short" ] ) ;
111111 let mut cursor = raw. cursor ( ) ;
112112 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
113113 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -121,7 +121,7 @@ fn to_short() {
121121
122122#[ test]
123123fn is_negative_number ( ) {
124- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "-10.0" ] ) ;
124+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "-10.0" ] ) ;
125125 let mut cursor = raw. cursor ( ) ;
126126 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
127127 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -131,7 +131,7 @@ fn is_negative_number() {
131131
132132#[ test]
133133fn is_positive_number ( ) {
134- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "10.0" ] ) ;
134+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "10.0" ] ) ;
135135 let mut cursor = raw. cursor ( ) ;
136136 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
137137 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -141,7 +141,7 @@ fn is_positive_number() {
141141
142142#[ test]
143143fn is_not_number ( ) {
144- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "--10.0" ] ) ;
144+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "--10.0" ] ) ;
145145 let mut cursor = raw. cursor ( ) ;
146146 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
147147 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -151,7 +151,7 @@ fn is_not_number() {
151151
152152#[ test]
153153fn is_stdio ( ) {
154- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "-" ] ) ;
154+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "-" ] ) ;
155155 let mut cursor = raw. cursor ( ) ;
156156 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
157157 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -161,7 +161,7 @@ fn is_stdio() {
161161
162162#[ test]
163163fn is_not_stdio ( ) {
164- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "--" ] ) ;
164+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "--" ] ) ;
165165 let mut cursor = raw. cursor ( ) ;
166166 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
167167 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -171,7 +171,7 @@ fn is_not_stdio() {
171171
172172#[ test]
173173fn is_escape ( ) {
174- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "--" ] ) ;
174+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "--" ] ) ;
175175 let mut cursor = raw. cursor ( ) ;
176176 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
177177 let next = raw. next ( & mut cursor) . unwrap ( ) ;
@@ -181,7 +181,7 @@ fn is_escape() {
181181
182182#[ test]
183183fn is_not_escape ( ) {
184- let raw = clap_lex:: RawArgs :: from_iter ( [ "bin" , "-" ] ) ;
184+ let raw = clap_lex:: RawArgs :: new ( [ "bin" , "-" ] ) ;
185185 let mut cursor = raw. cursor ( ) ;
186186 assert_eq ! ( raw. next_os( & mut cursor) , Some ( std:: ffi:: OsStr :: new( "bin" ) ) ) ;
187187 let next = raw. next ( & mut cursor) . unwrap ( ) ;
0 commit comments