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

сделал IsFalseString()

This commit is contained in:
Nikitin Aleksandr
2025-03-04 14:32:24 +03:00
parent a87830b6b9
commit 4b16c0330b
2 changed files with 46 additions and 0 deletions

View File

@@ -1362,3 +1362,17 @@ func TestStringFromBool(t *testing.T) {
// }
// t.Log(time.Time(Otvet))
//}
func TestIsFalseString(t *testing.T) {
Otvet := IsFalseString("false")
if Otvet != true {
t.Errorf("Expected true, but got %v", Otvet)
}
}
func TestIsTrueString(t *testing.T) {
Otvet := IsTrueString("true")
if Otvet != true {
t.Errorf("Expected true, but got %v", Otvet)
}
}