mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-26 23:10:42 +02:00
сделал IsFalseString()
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user