lesoson-9 testing questions #2519
-
Could i please know how these lines of codes are written?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hello @MasterofBlockchain I'm guessing this question is related to #2520 the args part I've explained in that discussion. Concerning |
Beta Was this translation helpful? Give feedback.
-
Firstly, refer to @othaime-en 's reply. "where is args is coming from?" I do not see "And how assert ==1?" Could you paste the entire code snippet? It is more so of a "test" to compare whether the lotteryState is |
Beta Was this translation helpful? Give feedback.
Firstly, refer to @othaime-en 's reply.
"where is args is coming from?" I do not see
args
above. I think you should update the description :)"And how assert ==1?" Could you paste the entire code snippet? It is more so of a "test" to compare whether the lotteryState is
1
(CALCULATING
) or not (OPEN
). Thus, we are "testing" whether the lottery is calculating or not.