M1 build failure...; com.crio.warmup.stock.ModuleOneTest ; mainReadFile(), mainReadFileEdgecase()

these 2 test cases are not passing (mainReadFile(), mainReadFileEdgecase() )

I’ve referred this

and considered the possibility that there are more than 3 symbols in a file.

Not able to move forward, since am not able to understand what is expected.

even the logs didn’t give me any hints…
unit test log says this

2020-02-20 11:49:09,228 unitTesting INFO Running gradle test
2020-02-20 11:49:29,913 unitTesting INFO Gradle test run complete
2020-02-20 11:49:29,916 unitTesting INFO Build failed

Hey, make sure you have not hard coded the data. Only then will it be successful and also pass the test cases.

wanted to make sure I don’t do hard coding but still I did.
Thank you @Sakshat-Crio.Do :slightly_smiling_face:

for others who are stuck here. All I can say is,
don’t hard code any data and understand how the function mainReadFile is called. (And thank me later :sweat_smile:)

Cool, never hard code and good luck for future modules :slight_smile:

1 Like

Does hardcoding include doing the “Evaluate the expression” Task from setup 2?

Found it!! if anyone hasnt, look at this : https://forum.crio.do/t/moduleonetest-module-1/7626/7?u=aanand

I have not hard coded anything, still I’m getting this same error. What should I do now?

Hard coding does not just mean initializing them, Just see if you’ve set any values to a static value/limit in your implementation. I hope this helps!