@@ -26,7 +26,7 @@ fn line_wrap() {
2626
2727 // Basic line wrap test
2828 assert_debug_snapshot ! ( test_line_wrap_tokens( r"5 +
29- \ 3 " ) , @r "
29+ \ 3 " ) , @"
3030 Tokens(
3131 [
3232 0..1: Literal(Integer(5)),
@@ -77,7 +77,7 @@ fn debug_display() {
7777 Tokens ( lexer ( ) . parse ( input) . output ( ) . unwrap ( ) . to_vec ( ) )
7878 }
7979
80- assert_debug_snapshot ! ( test_tokens( "5 + 3" ) , @r "
80+ assert_debug_snapshot ! ( test_tokens( "5 + 3" ) , @"
8181 Tokens(
8282 [
8383 0..1: Literal(Integer(5)),
@@ -221,7 +221,7 @@ fn range() {
221221 Tokens ( lexer ( ) . parse ( input) . output ( ) . unwrap ( ) . to_vec ( ) )
222222 }
223223
224- assert_debug_snapshot ! ( test_range_tokens( "1..2" ) , @r "
224+ assert_debug_snapshot ! ( test_range_tokens( "1..2" ) , @"
225225 Tokens(
226226 [
227227 0..1: Literal(Integer(1)),
@@ -231,7 +231,7 @@ fn range() {
231231 )
232232 " ) ;
233233
234- assert_debug_snapshot ! ( test_range_tokens( "..2" ) , @r "
234+ assert_debug_snapshot ! ( test_range_tokens( "..2" ) , @"
235235 Tokens(
236236 [
237237 0..2: Range { bind_left: true, bind_right: true },
@@ -240,7 +240,7 @@ fn range() {
240240 )
241241 " ) ;
242242
243- assert_debug_snapshot ! ( test_range_tokens( "1.." ) , @r "
243+ assert_debug_snapshot ! ( test_range_tokens( "1.." ) , @"
244244 Tokens(
245245 [
246246 0..1: Literal(Integer(1)),
@@ -267,7 +267,7 @@ fn range() {
267267fn test_lex_source ( ) {
268268 use insta:: assert_debug_snapshot;
269269
270- assert_debug_snapshot ! ( lex_source( "5 + 3" ) , @r "
270+ assert_debug_snapshot ! ( lex_source( "5 + 3" ) , @"
271271 Ok(
272272 Tokens(
273273 [
@@ -291,20 +291,20 @@ fn test_annotation_tokens() {
291291 // Test basic annotation token
292292 let result = super :: lex_source ( "@{binding_strength=1}" ) ;
293293 assert_debug_snapshot ! ( result, @r#"
294- Ok(
295- Tokens(
296- [
297- 0..0: Start,
298- 0..1: Annotate,
299- 1..2: Control('{'),
300- 2..18: Ident("binding_strength"),
301- 18..19: Control('='),
302- 19..20: Literal(Integer(1)),
303- 20..21: Control('}'),
304- ],
305- ),
306- )
307- "# ) ;
294+ Ok(
295+ Tokens(
296+ [
297+ 0..0: Start,
298+ 0..1: Annotate,
299+ 1..2: Control('{'),
300+ 2..18: Ident("binding_strength"),
301+ 18..19: Control('='),
302+ 19..20: Literal(Integer(1)),
303+ 20..21: Control('}'),
304+ ],
305+ ),
306+ )
307+ "# ) ;
308308
309309 // Test multi-line annotation
310310 let result = super :: lex_source (
@@ -314,32 +314,32 @@ fn test_annotation_tokens() {
314314 "# ,
315315 ) ;
316316 assert_debug_snapshot ! ( result, @r#"
317- Ok(
318- Tokens(
319- [
320- 0..0: Start,
321- 0..1: NewLine,
322- 9..10: Annotate,
323- 10..11: Control('{'),
324- 11..27: Ident("binding_strength"),
325- 27..28: Control('='),
326- 28..29: Literal(Integer(1)),
327- 29..30: Control('}'),
328- 30..31: NewLine,
329- 39..42: Keyword("let"),
330- 43..46: Ident("add"),
331- 47..48: Control('='),
332- 49..50: Ident("a"),
333- 51..52: Ident("b"),
334- 53..55: ArrowThin,
335- 56..57: Ident("a"),
336- 58..59: Control('+'),
337- 60..61: Ident("b"),
338- 61..62: NewLine,
339- ],
340- ),
341- )
342- "# ) ;
317+ Ok(
318+ Tokens(
319+ [
320+ 0..0: Start,
321+ 0..1: NewLine,
322+ 9..10: Annotate,
323+ 10..11: Control('{'),
324+ 11..27: Ident("binding_strength"),
325+ 27..28: Control('='),
326+ 28..29: Literal(Integer(1)),
327+ 29..30: Control('}'),
328+ 30..31: NewLine,
329+ 39..42: Keyword("let"),
330+ 43..46: Ident("add"),
331+ 47..48: Control('='),
332+ 49..50: Ident("a"),
333+ 51..52: Ident("b"),
334+ 53..55: ArrowThin,
335+ 56..57: Ident("a"),
336+ 58..59: Control('+'),
337+ 60..61: Ident("b"),
338+ 61..62: NewLine,
339+ ],
340+ ),
341+ )
342+ "# ) ;
343343}
344344
345345#[ test]
0 commit comments