mirror of
				https://github.com/taigrr/yq
				synced 2025-01-18 04:53:17 -08:00 
			
		
		
		
	added another test
This commit is contained in:
		
							parent
							
								
									2c3357702d
								
							
						
					
					
						commit
						a3e422ff76
					
				| @ -32,6 +32,11 @@ var pathTests = []struct { | ||||
| 		append(make([]interface{}, 0), "a", "PIPE", "[]", "SHORT_PIPE", "b", "EQUALS", "apple (string)"), | ||||
| 		append(make([]interface{}, 0), "a", "[]", "b", "SHORT_PIPE", "apple (string)", "EQUALS", "PIPE"), | ||||
| 	}, | ||||
| 	{ | ||||
| 		`(.a | .[].b) == "apple"`, | ||||
| 		append(make([]interface{}, 0), "(", "a", "PIPE", "[]", "SHORT_PIPE", "b", ")", "EQUALS", "apple (string)"), | ||||
| 		append(make([]interface{}, 0), "a", "[]", "b", "SHORT_PIPE", "PIPE", "apple (string)", "EQUALS"), | ||||
| 	}, | ||||
| 	{ | ||||
| 		`.[] | select(. == "*at")`, | ||||
| 		append(make([]interface{}, 0), "[]", "PIPE", "SELECT", "(", "SELF", "EQUALS", "*at (string)", ")"), | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user