1
0
mirror of https://github.com/ManyakRus/starter.git synced 2025-11-27 23:18:34 +02:00

сделал Abs()

This commit is contained in:
Nikitin Aleksandr
2025-01-14 10:44:22 +03:00
parent 94c211b866
commit 2f9f0ebe20
2 changed files with 15 additions and 0 deletions

View File

@@ -1338,3 +1338,10 @@ func TestSetFieldValue2(t *testing.T) {
t.Errorf("Expected 'Test', but got %v", Struct.Field1)
}
}
func TestAbs(t *testing.T) {
Otvet := Abs(-1)
if Otvet != 1 {
t.Errorf("Expected 1, but got %d", Otvet)
}
}