mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			259 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			259 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package summary
 | 
						|
 | 
						|
import "testing"
 | 
						|
 | 
						|
func TestMarkdown(t *testing.T) {
 | 
						|
	input := []byte(`Testing with just a few words.`)
 | 
						|
	got := string(Markdown(input, 3))
 | 
						|
	if want := "Testing with just"; want != got {
 | 
						|
		t.Errorf("Expected '%s' but got '%s'", want, got)
 | 
						|
	}
 | 
						|
}
 |