I got confused because my first iteration passed the local tests but failed once submitted. After that I found out that the assets/empty.txt file isn’t created when I download the exercise. Is it a problem just for me? Did it happened to anyone else?
Here you can see my solutions. The last one passed both tests (local and online) after I manually created the empty file.
By design, the Exercism CLI doesn’t download empty files so that’d most likely explain the missing text file locally. Perhaps, a note in the exercise instructions is warranted for students solving the exercie locally.
Adding anything to a file that is “empty.txt” seems counter-intuitive, since then it will not be an empty file.
Probably better to either remove lines 104-107 of download.go or make an exception for any file called empty.txt, as by name (and definition, and intention) it violates the length of 0 check there.