Spekulant
Explore posts from servers❔ xUnit tests
i have this code that has function execute it reads text and appends the words in a paragraph into a list.
then a function write results it writes the results onto a commandline
for example
the code alone works perfectly fine when im debugging the xunit tests it execute counts the words correctly but when the writeResults function starts the values in the list are empty
17 replies
❔ ✅ SreamReader vs. TextReader
Given i want to program a reader that is efficient so i will read by a character not by line or whole text file should i use stream or text reader i know from docs that TextReader -> StreamReader and they both have function .read() so how should i decide which one.
And should i use a cobination with stringbuilder when i want to count the number of words
10 replies
❔ reprotucing the kings path
can anybody help me fix this code
https://paste.mod.gg/sgsvrbaqnmpi/0
i my code print out the number of steps the king needs but i also want the path the kings has to take but its not doing it alright
2 replies