mirror of
				https://github.com/taigrr/yq
				synced 2025-01-18 04:53:17 -08:00 
			
		
		
		
	Added another multistring test
This commit is contained in:
		
							parent
							
								
									b99467432e
								
							
						
					
					
						commit
						e1e05d85e3
					
				| @ -443,6 +443,25 @@ hijklmno | ||||
| 	test.AssertResult(t, expectedOutput, result.Output) | ||||
| } | ||||
| 
 | ||||
| func TestReadQuotedMultinlineNoNewLineStringCmd(t *testing.T) { | ||||
| 	content := `test: |- | ||||
|   abcdefg     | ||||
|   hijklmno | ||||
| ` | ||||
| 	filename := test.WriteTempYamlFile(content) | ||||
| 	defer test.RemoveTempYamlFile(filename) | ||||
| 
 | ||||
| 	cmd := getRootCommand() | ||||
| 	result := test.RunCmd(cmd, fmt.Sprintf("read %s test", filename)) | ||||
| 	if result.Error != nil { | ||||
| 		t.Error(result.Error) | ||||
| 	} | ||||
| 	expectedOutput := `abcdefg     | ||||
| hijklmno | ||||
| ` | ||||
| 	test.AssertResult(t, expectedOutput, result.Output) | ||||
| } | ||||
| 
 | ||||
| func TestReadBooleanCmd(t *testing.T) { | ||||
| 	content := `name: true` | ||||
| 	filename := test.WriteTempYamlFile(content) | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user