update stuff

This commit is contained in:
matst80
2024-11-16 10:14:38 +01:00
parent 9aa64b2808
commit 1562b193ff
6 changed files with 63 additions and 6 deletions

19
id_test.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"testing"
)
func TestIdGeneration(t *testing.T) {
// Generate a random ID
id := NewCartId()
// Generate a random ID
id2 := NewCartId()
// Compare the two IDs
if id == id2 {
t.Errorf("IDs are the same: %v == %v", id, id2)
} else {
t.Log("ID generation test passed", id, id2)
}
}