your test is too faraway from the method you suspect.

来源: LiveInCanada2 2018-05-24 15:16:45 [] [旧帖] [给我悄悄话] 本文已被阅读: 0 次 (1267 bytes)
回答: Herecm9301182018-05-24 14:33:20

Your test is too faraway from the method isLegal() you suspect. You need write a unittest to test the methods when you suspect it is not working.

isLegal() is an implementation. I guess it is called in CardGameGUI somewhere. Check CardGameGUI If isLegal() has been actually called.

containsJQK() and containsPairSum11() are private. why you write them?

give me class Deck.

所有跟帖: 

Deck class as follows below: 谢谢! -cm930118- 给 cm930118 发送悄悄话 (0 bytes) () 05/24/2018 postreply 15:24:18

Deck looks good; -LiveInCanada2- 给 LiveInCanada2 发送悄悄话 (1621 bytes) () 05/24/2018 postreply 15:57:53

I did some searching on Google and found out what implementation -cm930118- 给 cm930118 发送悄悄话 (234 bytes) () 05/24/2018 postreply 16:53:00

请您先登陆,再发跟帖!

发现Adblock插件

如要继续浏览
请支持本站 请务必在本站关闭/移除任何Adblock

关闭Adblock后 请点击

请参考如何关闭Adblock/Adblock plus

安装Adblock plus用户请点击浏览器图标
选择“Disable on www.wenxuecity.com”

安装Adblock用户请点击图标
选择“don't run on pages on this domain”