mirror of
https://github.com/SphericalKat/medium.rip.git
synced 2024-12-26 17: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)
|
|
}
|
|
} |