mirror of
				https://github.com/SphericalKat/medium.rip.git
				synced 2025-10-31 02:45:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			310 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			310 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package converters
 | |
| 
 | |
| import "testing"
 | |
| 
 | |
| func TestConvertId(t *testing.T) {
 | |
| 	id := "@fareedkhandev/pandas-ai-the-future-of-data-analysis-8f0be9b5ab6f"
 | |
| 	convertedId := idFromPath(id)
 | |
| 	expected := "8f0be9b5ab6f"
 | |
| 	if convertedId != expected {
 | |
| 		t.Errorf("ConvertId(%s) = %s; want %s", id, convertedId, expected)
 | |
| 	}
 | |
| } |