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
0
300
Muscle Assert
ayato
December 18, 2016
Tweet
Share
More Decks by ayato
See All by ayato
マイクロサービス内で動くAPIをF#で書いている
ayato0211
1
1.4k
Clojureという言語が私逹にもたらしたもの
ayato0211
6
3.2k
3年間考え続けてきたWebアプリケーションにおけるテストの話
ayato0211
3
290
Re:REPL-Driven Development
ayato0211
3
1.4k
Meta Template Engine
ayato0211
2
1.2k
超変換! Hiccup data structure!!
ayato0211
2
640
About Integrant
ayato0211
0
590
Clojureを用いたWebアプリケーション開発
ayato0211
2
3.2k
翻訳にまつわるエトセトラ
ayato0211
6
1.3k
Other Decks in Programming
See All in Programming
Takumiから考えるSecurity_Maturity_Model.pdf
gessy0129
1
150
Understanding Apache Lucene - More than just full-text search
spinscale
0
130
メタプログラミングで実現する「コードを仕様にする」仕組み/nikkei-tech-talk43
nikkei_engineer_recruiting
0
200
Claude Codeログ基盤の構築
giginet
PRO
7
3.5k
The free-lunch guide to idea circularity
hollycummins
0
280
The Past, Present, and Future of Enterprise Java
ivargrimstad
0
710
Claude Code Skill入門
mayahoney
0
410
Everything Claude Code OSS詳細 — 5層構造の中身と導入方法
targe
0
140
ロボットのための工場に灯りは要らない
watany
11
3k
RAGでハマりがちな"Excelの罠"を、データの構造化で突破する
harumiweb
9
2.9k
Go Conference mini in Sendai 2026 : Goに新機能を提案し実装されるまでのフロー徹底解説
yamatoya
0
620
Migration to Signals, Signal Forms, Resource API, and NgRx Signal Store @Angular Days 03/2026 Munich
manfredsteyer
PRO
0
110
Featured
See All Featured
Why Mistakes Are the Best Teachers: Turning Failure into a Pathway for Growth
auna
0
86
Chasing Engaging Ingredients in Design
codingconduct
0
140
Imperfection Machines: The Place of Print at Facebook
scottboms
269
14k
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
150
Money Talks: Using Revenue to Get Sh*t Done
nikkihalliwell
0
180
Designing for Performance
lara
611
70k
Evolution of real-time – Irina Nazarova, EuRuKo, 2024
irinanazarova
9
1.2k
Agile that works and the tools we love
rasmusluckow
331
21k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
130
Navigating the moral maze — ethical principles for Al-driven product design
skipperchong
2
290
16th Malabo Montpellier Forum Presentation
akademiya2063
PRO
0
74
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.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 似てる…