feat: validate user input for entity names

This commit is contained in:
IliaDenisov
2026-02-06 19:31:35 +03:00
parent 203d4e21c4
commit 3dd0440832
11 changed files with 304 additions and 28 deletions
+7
View File
@@ -31,3 +31,10 @@ func TestFixed(t *testing.T) {
})
}
}
func TestMax(t *testing.T) {
assert.Equal(t, 10., Max(9., 10.))
assert.Equal(t, 11., Max(11., 10.))
assert.Equal(t, 0, Max(-1, 0))
assert.Equal(t, 1, Max(1, 0))
}