* A test for NIX-53.
This commit is contained in:
		
							parent
							
								
									3e5b68068b
								
							
						
					
					
						commit
						bfe19b3c37
					
				
					 2 changed files with 18 additions and 0 deletions
				
			
		
							
								
								
									
										1
									
								
								tests/lang/parse-okay-crlf.exp
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								tests/lang/parse-okay-crlf.exp
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1 @@ | |||
| Rec([Bind("x",Var("y"),Pos("(string)",6,4)),Bind("y",Int(123),Pos("(string)",10,4)),Bind("foo",Str("multi\nline\n  string\n  test\r"),Pos("(string)",14,6)),Bind("z",Int(456),Pos("(string)",19,4))],[]) | ||||
							
								
								
									
										17
									
								
								tests/lang/parse-okay-crlf.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								tests/lang/parse-okay-crlf.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,17 @@ | |||
| rec { | ||||
| 
 | ||||
|   /* Dit is | ||||
|   een test. */ | ||||
| 
 | ||||
|   x =  | ||||
|   # Dit is een test.
y; | ||||
|    | ||||
|   y = 123; | ||||
| 
 | ||||
|   # CR or CR/LF in strings should be translated to LF (but not | ||||
|   # explicit \r's). | ||||
|   foo = "multi
line | ||||
|   string | ||||
|   test\r"; | ||||
| 
 | ||||
|   z = 456;
} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue