1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-26 23:10:42 +02:00

сделал Max()

This commit is contained in:
Nikitin Aleksandr
2025-01-24 11:06:24 +03:00
parent c8b6ecda35
commit 8a811a7e20
2 changed files with 72 additions and 24 deletions

View File

@@ -205,15 +205,15 @@ func TestMin(t *testing.T) {
}
}
func TestMaxInt60(t *testing.T) {
Otvet := MaxInt64(1, 2)
if Otvet != 2 {
func TestMaxInt64(t *testing.T) {
Otvet := MaxInt64(1, 2, 3, 4)
if Otvet != 4 {
t.Error("microfunctions_test.TestMax() error: Otvet != 2")
}
}
func TestMinInt64(t *testing.T) {
Otvet := MinInt64(1, 2)
Otvet := MinInt64(1, 2, 3, 4)
if Otvet != 1 {
t.Error("microfunctions_test.TestMin() error: Otvet != 1")
}