medium.rip/pkg/converters/id_converter_test.go
Sphericalkat aacabdd54d feat: add id parsing
Signed-off-by: Sphericalkat <amolele@gmail.com>
2023-05-28 16:58:11 +05:30

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)
}
}