mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2024-11-16 19:35: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)
|
|
}
|
|
} |