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
Muscle Assert
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
ayato
December 18, 2016
Programming
310
0
Share
Muscle Assert
ayato
December 18, 2016
More Decks by ayato
See All by ayato
マイクロサービス内で動くAPIをF#で書いている
ayato0211
1
1.4k
Clojureという言語が私逹にもたらしたもの
ayato0211
6
3.2k
3年間考え続けてきたWebアプリケーションにおけるテストの話
ayato0211
3
300
Re:REPL-Driven Development
ayato0211
3
1.4k
Meta Template Engine
ayato0211
2
1.2k
超変換! Hiccup data structure!!
ayato0211
2
650
About Integrant
ayato0211
0
590
Clojureを用いたWebアプリケーション開発
ayato0211
2
3.2k
翻訳にまつわるエトセトラ
ayato0211
6
1.3k
Other Decks in Programming
See All in Programming
Strategy for Finding a Problem for OSS: With Real Examples
kibitan
0
130
Coding as Prompting Since 2025
ragingwind
0
680
実践ハーネスエンジニアリング #MOSHTech
kajitack
7
5.6k
レガシーPHP転生 〜父がドメインエキスパートだったのでDDD+Claude Codeでチート開発します〜
panda_program
0
230
Vibe하게 만드는 Flutter GenUI App With ADK , 박제창, BWAI Incheon 2026
itsmedreamwalker
0
540
存在論的プログラミング: 時間と存在を記述する
koriym
5
770
おれのAgentic Coding 2026/03
tsukasagr
1
130
Nuxt Server Components
wattanx
0
240
PHP でエミュレータを自作して Ubuntu を動かそう
m3m0r7
PRO
2
170
Symfony + NelmioApiDocBundle を使った スキーマ駆動開発 / Schema Driven Development with NelmioApiDocBundle
okashoi
0
260
Radical Imagining - LIFT 2025-2027 Policy Agenda
lift1998
0
230
Goの型安全性で実現する複数プロダクトの権限管理
ishikawa_pro
2
1.4k
Featured
See All Featured
Reality Check: Gamification 10 Years Later
codingconduct
0
2.1k
Producing Creativity
orderedlist
PRO
348
40k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
160
Helping Users Find Their Own Way: Creating Modern Search Experiences
danielanewman
31
3.1k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
250
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
360
30k
Un-Boring Meetings
codingconduct
0
250
Context Engineering - Making Every Token Count
addyosmani
9
790
Cheating the UX When There Is Nothing More to Optimize - PixelPioneers
stephaniewalter
287
14k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
2
660
SEO for Brand Visibility & Recognition
aleyda
0
4.4k
Documentation Writing (for coders)
carmenintech
77
5.3k
Transcript
ےςετΛ ٹ͏͜ͱ͕ग़དྷΔͷ͔ !@BZBUP@Q
$MPKVSJBO͕ ๊͍͑ͯΔ
DMPKVSFUFTUͷGBJMʹཱͨͳ͍
DMPKVSFUFTUͷGBJMʹཱͨͳ͍ マップ同士の比較テスト 述語によるテスト ネストした複雑な構造の比較テスト
DMPKVSFUFTUͷGBJMʹཱͨͳ͍
DMPKVSFUFTUͷGBJMʹཱͨͳ͍ ただ `not` を付けただけ!
ίϨδϟφΠײ GBJMͯ͠ΔΜ͔ͩΒظͷରͳͷͨΓલ $MPKVSFͷςετͰ୯७ͳσʔλߏಉ࢜ͷ ൺֱ͕ଟ͍ Γ͍ͨͷԿॲ͕Ͳ͏ҧ͏ͷ͔ ԿނɺͦΕͰྑ͍ͱࢥͬͨʜ
ࢁͷ$MPKVSJBO͕ ͜ͷʹΜͰ͖ͨ
IVNBOFUFTUPVUQVU
IVNBOFUFTUPVUQVU pprint?
MFJOEJGGUFTU
MFJOEJGGUFTU 文字列化してdiff?
FGUFTUXJUIQSFUUZSFQPSU
FGUFTUXJUIQSFUUZSFQPSU clojure.data/diff?
ଓɾίϨδϟφΠײ ͏ͪΐͬͱؤுͬͯཉ͍͠ʜ
ҰํɺςετϑϨʔϜ ϫʔΫք۾Ͱ
QPXFSBTTFSU͕ॏๅ͞Ε͍ͯͨ
ͦ͜ʹҰੴ͕͡ΒΕΔ http://bleis-tift.hatenablog.com/entry/about-power-assert
.VTDMF"TTFSUͷొ http://pocketberserker.hatenablog.com/entry/2016/06/02/143727
.VTDMF"TTFSU Ϣχοτςετ༻ͷΞαʔγϣϯ Կॲ͕Ͳ͏ҧ͏͔Λڧௐͯ͠ग़ྗ͢Δ ྗٕͰෆཁͳใΛѲΓ௵͢ʂ
࣌.VTDMF"TTFSU
࣌.VTDMF"TTFSU 筋肉はすべてを救う!?
ͱ͍͏Θ͚Ͱ ࡞Γ·ͨ͠
%&.0
·ͱΊ
·ͱΊ $MPKVSFͷςετք۾Α͔͘Βͳ͍ͷ͕ଟ͍ $MPKVSFͰ୯७ͳϚοϓͳͲͷൺֱ͕ଟ͍ͷͰ .VTDMF"TTFSUతͳΞϓϩʔν༗ޮ ࣮࡞ͬͯΔ్தͰࣅͨΑ͏ͳͷΛݟ͚ͭͯ ͠·͕ͬͨແࢹͨ͠ʜ
GMBSF
GMBSF 似てる…