Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
乱数をテストするときの心構え
Search
yamacraft
September 30, 2016
Technology
850
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
乱数をテストするときの心構え
2016年9月30日(金)に開催されたAndroid Testing Bootcamp #4にて発表した資料です。
yamacraft
September 30, 2016
More Decks by yamacraft
See All by yamacraft
なぜアプリのデザインとその実装はうまくいかないのか?
yamacraft
0
220
あんまり触れられてない気がする、Kotlin1.3の ありがたい追加機能
yamacraft
0
3.2k
ありがたいUIをもっと大事にしたい
yamacraft
2
2.5k
Quickstart-android/mlkitについて
yamacraft
2
5k
Firebase関連をCIでデプロイするときのTips
yamacraft
0
5.1k
開発用途で Realtime Databaseを 導入した話
yamacraft
2
4.7k
ciecleci/androidのOpenSSLに気をつけよう
yamacraft
0
740
Realtime Databaseに向いてる・向いてないサービス
yamacraft
0
980
社内用アプリでFirebaseを使っている話
yamacraft
2
2k
Other Decks in Technology
See All in Technology
AI・ロボティクスと自動化社会 / AI, Robotics, and the Automated Society
ks91
PRO
0
120
データレイクの「見えない問題」を可視化する
sansantech
PRO
1
250
テスト設計の本質を改めて考えてみる~生成AIを活用する時代だからこそ、作ったテストの説明性を高めよう~
yamasaki696
1
230
攻撃者がいなくてもAIエージェントはインシデントを起こす
nomizone
0
170
AIをフル活用してオンコール機能のプロトタイプを2日で作った話 / Building an AI-Powered On-Call Prototype in Just Two Days
nari_ex
0
160
次世代ランサムウェア対策の考察 / 20260704 Mitsutoshi Matsuo
shift_evolve
PRO
5
1.5k
Agile and AI Redmine Japan 2026
hiranabe
4
560
MySQL & MySQL HeatWave Report - June 2026
freshdaz
0
250
AI-DLCを “そのまま導入しなかった”話 ~組織に合わせてアジャストした 私たちの実践共有~
hiroramos4
PRO
1
480
5分でわかる Amazon Connect_20260608
hwangbyeonghun
0
150
AIDLC_ヤフーショッピングの取り組み
lycorptech_jp
PRO
0
230
AI Agentをシステムに組み込む前にゆるく向き合ってみる
hayama17
0
180
Featured
See All Featured
BBQ
matthewcrist
89
10k
AI Search: Where Are We & What Can We Do About It?
aleyda
0
7.6k
It's Worth the Effort
3n
188
29k
Become a Pro
speakerdeck
PRO
31
6k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
1.8k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
AI: The stuff that nobody shows you
jnunemaker
PRO
8
750
Why Our Code Smells
bkeepers
PRO
340
58k
4 Signs Your Business is Dying
shpigford
187
22k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
2
4k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.2k
Transcript
ཚΛςετ͢Δͱ͖ ͷ৺ߏ͑ @yamacraft
profile • @yamacraft (Wataru Yamada) • LeadingMark, inc / team
Y.G.E. • Mobile Application Engineer
ζϯυίΩϤγ ήʔϜ • ྫͷΞϨΛήʔϜԽͨ͠Ξ ϓϦ • Google Play Game ServiceରԠʂ
• https://play.google.com/ store/apps/details? id=jp.yamaglo.yge.zundo kogame
ʮζϯorυίʯ෦ͷ ςετΛೖΕ͍ͨʂ
ʮζϯorυίʯͷ༷ • ϘλϯλοϓͷλΠϛϯάͰZunDokoΫϥεΛੜ͢Δ • ZunDoko.idͰʮζϯʯͱʮυίʯΛผͯ͠σΟεϓϨΠʹग़ྗ • idੜ࣌ʹϥϯμϜͰ0͔1͕ೖ͞ΕΔ • 0͔1͔50:50 •
ʮ100ճZunDokoΫϥεΛੜͨ͠ͱ͖ʹid=0͕50ɺid=1͕ 50ʹͳΔ͔ʯ ← ͍ɺͪΐͬͱ……
ཚΛςετͰ͖Δͷʁ
͑3લʹ௨ա͍ͯͨ͠ • ϥϯμϜʹৼΔ͏ػೳΛ JUnit ͢Δ #ौ୩Java ୈ̏ճ • https://speakerdeck.com/komiya_atsushi/ randamunizhen-ruwu-uji-neng-wo-junit-suru-number-
shibui-gu-java-di-3hui • ԾઆݕఆʗΧΠೋݕఆ • BaseMatcherͷ֦ுΫϥε • https://gist.github.com/komiya-atsushi/6736271
ͱ͍͏Θ͚Ͱಋೖ • https://gist.github.com/komiya-atsushi/6736271 ͦͷ··AndroidͷJUnit4Ͱར༻Մೳ • Apache Commons MathΛ͍ͬͯΔͷͰ testCompileͰՃ͓ͯ͘͠
ͬͯΈΔ • id=0ͱid=1ͷ͕50:50Ͱ༗ҙਫ४Λ5ˋʹઃఆͯ͠ ςετΛ࣮ࢪ
ҙ • ཚੜͷΞϧΰϦζϜ࣍ୈͰςετ௨աͨ͠Γ͠ͳ͔ͬ ͨΓ͢Δ • ࢼߦճͱ༗ҙਫ४ͷௐʹҙ • ଟ͗ͯ͢ςετʹ͕͔͔࣌ؒΔՄೳੑ • ༗ҙਫ४͕ΏΔ͗ͯ͢ʹؾ͔ͮͳ͍Մೳੑ
• ʮཚͷᘳͳςετͰ͖ͳ͍ʯͱ͍͏͍ҙࣝΛͬ ͯऔΓ͏
͓͠·͍ • https://gist.github.com/komiya-atsushi/6736271 • ϥϯμϜʹৼΔ͏ػೳΛ JUnit ͢Δ • https://speakerdeck.com/komiya_atsushi/ randamunizhen-ruwu-uji-neng-wo-junit-suru-number-
shibui-gu-java-di-3hui • org.hamcrest.BaseMatcherΛ֦ுͯ͠assertThat()Ͱ͏ • http://d.hatena.ne.jp/ihiroky/20090916/1253076366