????????????·???
?????ThoughtWorks ???????[ 2016/11/22 14:17:11 ] ??????????????? ???????
????????????????????????漲??
???????????????a???????????identity-nat???????????a??
????(def test-identity-nat
????(prop/for-all [a (s/gen nat-int?)]
????(= a (identity-nat a))))
????(tc/quick-check 100 test-identity-nat)
????-> {:result false??
????:seed 1477362396044??
????:failing-size 0??
????:num-tests 1??
????:fail [0]??
????:shrunk {:total-nodes-visited 0??
????:depth 0??
????:result false??
????:smallest [0]}}
???????????????100??????????????nat-int??????в????????????з????????????????????????0?????????????С????[0]?????????С???????????????????????????????????????
????????????????????????????????У??????????????????????????????????100???????????????????????????????????100?????????????????????????????????????????????????????????????????——?????С??????????????
????Clojure???????Rich Hickey???Simple Made Easy???????????????????????Clojure.spec???и????????????????????
????(s/fdef identity-nat
????:args (s/cat :a nat-int?) ; ???????????
????:ret nat-int? ; ??????????
????:fn #(= (:ret %) (-> % :args :a))) ; ??κ???????????
????(stest/check `identity-nat)
????fdef?????????identity-nat???????????????????????????1000????????????????????????????????????????????????????
???????TDD
????TDD??????????????????????????????????????????????????в?????????????????????????£???????????????????????????????????????????????е???????裬????????????????????????
????????????????????????????????????????????????????????????????????????????????????????????guai????quan?????????????????????????·???????????????????????????????????????????????????????????????????????????????д??????????????????????????κθ????????????????????????????仰????????????????????????????????????????????????£??????????????????????????????????????????????????????????????????????Ρ?
??????????????????????????????????????????????????????????????????????TDD?????“????????”??Show your work?????????????????????“?????????“??Check your work??????????????
????С??
???????????д??????????????
????1???????????????????
????2?????????е????????????
?????????????????????????????????????????????????????????????????????????????????????????????????????????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
iOS???????mocha??chai??sinon??istanbul???????????????????????????????????????д?????Java????????7??????Android?????????Robolectric3.0????(?)???Kiwi?????????????????????????????????Python?????????????????????????????????????Controller????????д?????????10???????????????????Angular????????????Component??Directive??Pipe ???ServiceAndroid????????????????????????????????--Mockito??????iOS UnitTest???????Vue?????????????????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????