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

сделал packages.jpg

This commit is contained in:
Nikitin Aleksandr
2023-09-13 13:48:19 +03:00
parent d86504a070
commit 4ee2118a36
11 changed files with 4241 additions and 32 deletions

View File

@@ -327,3 +327,42 @@ func TestGetType(t *testing.T) {
t.Error("TestGetType() error: Otvet: ", Otvet)
}
}
func TestFindFileNameShort(t *testing.T) {
dir := ProgramDir()
Otvet := FindFileNameShort(dir)
if Otvet == "" {
t.Error("TestFindFileNameShort() error: Otvet =''")
}
}
func TestCurrentDirectory(t *testing.T) {
Otvet := CurrentDirectory()
if Otvet == "" {
t.Error("TestCurrentDirectory() error: Otvet = ''")
}
}
func TestBoolFromInt64(t *testing.T) {
Otvet := BoolFromInt64(111)
if Otvet != true {
t.Error("TestBoolFromInt64() error: Otvet != true")
}
}
func TestBoolFromInt(t *testing.T) {
Otvet := BoolFromInt(111)
if Otvet != true {
t.Error("TestBoolFromInt64() error: Otvet != true")
}
}
func TestDeleteFileSeperator(t *testing.T) {
dir := "home" + SeparatorFile()
dir = DeleteFileSeperator(dir)
if dir != "home" {
t.Error("TestDeleteFileSeperator() error")
}
}