Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
xtagon
on Jan 14, 2023
|
parent
|
context
|
favorite
| on:
“Expect tests” make test-writing feel like a REPL ...
It also converges closer and closer to the golden ratio. Implementing a property test for that would be interesting.
travisjungroth
on Jan 14, 2023
[–]
a, b, c = fib(n), fib(n+1), fib(n+2) assert abs(c / b - phi) < abs(b / a - phi)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: