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

сделал MaxInt()

This commit is contained in:
Nikitin Aleksandr
2025-04-28 16:37:57 +03:00
parent fab0fa458c
commit 9934b3f02f
2 changed files with 54 additions and 0 deletions

View File

@@ -220,6 +220,20 @@ func TestMinInt64(t *testing.T) {
}
}
func TestMaxInt(t *testing.T) {
Otvet := MaxInt(1, 2, 3, 4)
if Otvet != 4 {
t.Error("microfunctions_test.TestMaxInt() error: Otvet != 2")
}
}
func TestMinInt(t *testing.T) {
Otvet := MinInt(1, 2, 3, 4)
if Otvet != 1 {
t.Error("microfunctions_test.TestMinInt() error: Otvet != 1")
}
}
func TestGoGo(t *testing.T) {
fn := func() error {
Pause(2000)