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

сделал TestStringFromBool_Rus()

This commit is contained in:
Nikitin Aleksandr
2025-03-14 13:06:41 +03:00
parent 4b16c0330b
commit fd7b2481bb
2 changed files with 36 additions and 0 deletions

View File

@@ -1353,6 +1353,20 @@ func TestStringFromBool(t *testing.T) {
}
}
func TestStringFromBool_Rus(t *testing.T) {
Otvet := StringFromBool_Rus(true)
if Otvet != "Да" {
t.Errorf("Expected 'Да', but got %s", Otvet)
}
}
func TestStringFromBool_Rus_lower(t *testing.T) {
Otvet := StringFromBool_Rus_lower(true)
if Otvet != "да" {
t.Errorf("Expected 'да', but got %s", Otvet)
}
}
//func TestTime_UnmarshalByte(t *testing.T) {
// var Otvet Time
// Test := []byte("10:05:01")