Skip to content
Snippets Groups Projects

Second functionality is completed. Tests and comments included.

Merged Ivanov, Ivan (UG - Computer Science) requested to merge second_functionality into master
7 files
+ 195
8
Compare changes
  • Side-by-side
  • Inline
Files
7
+ 9
0
@@ -56,5 +56,14 @@ func TestOpenDirectory(t *testing.T) {
@@ -56,5 +56,14 @@ func TestOpenDirectory(t *testing.T) {
assertEqual(t, len(result), 5, "")
assertEqual(t, len(result), 5, "")
assertEqual(t, result[0], "testFolder1", "")
assertEqual(t, result[0], "testFolder1", "")
assertEqual(t, result[1], "testFolder2", "")
assertEqual(t, result[1], "testFolder2", "")
 
}
 
/*
 
Test if the tree function works by observing the counter.
 
*/
 
func TestTree(t *testing.T) {
 
counter := new(Counter)
 
tree("", counter, ".")
 
assertEqual(t, counter.directories, 3, "")
 
assertEqual(t, counter.files, 12, "")
}
}
Loading