This commit is contained in:
matst80
2024-11-14 22:53:32 +01:00
parent 0870a37d90
commit 69d92716c3
10 changed files with 283 additions and 47 deletions

View File

@@ -16,6 +16,13 @@ func GetMessage(t uint16, data interface{}) *Message {
}
}
func TestTaxAmount(t *testing.T) {
taxAmount := GetTaxAmount(12500, 2500)
if taxAmount != 2500 {
t.Errorf("Expected 2500, got %d\n", taxAmount)
}
}
func TestAddToCartShortCut(t *testing.T) {
grain, err := spawn(ToCartId("kalle"))
if err != nil {