mirror of
				https://github.com/TeaOSLab/EdgeCommon.git
				synced 2025-11-04 13:10:24 +08:00 
			
		
		
		
	
		
			
	
	
		
			14 lines
		
	
	
		
			259 B
		
	
	
	
		
			Go
		
	
	
	
	
	
		
		
			
		
	
	
			14 lines
		
	
	
		
			259 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 
								 | 
							
								package configutils
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								import (
							 | 
						||
| 
								 | 
							
									"github.com/iwind/TeaGo/assert"
							 | 
						||
| 
								 | 
							
									"testing"
							 | 
						||
| 
								 | 
							
								)
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								func TestMatchKeyword(t *testing.T) {
							 | 
						||
| 
								 | 
							
									a := assert.NewAssertion(t)
							 | 
						||
| 
								 | 
							
									a.IsTrue(MatchKeyword("a b c", "a"))
							 | 
						||
| 
								 | 
							
									a.IsFalse(MatchKeyword("a b c", ""))
							 | 
						||
| 
								 | 
							
									a.IsTrue(MatchKeyword("abc", "BC"))
							 | 
						||
| 
								 | 
							
								}
							 |