 
 This page contains automated test results for code from O'Reilly's Ruby Cookbook. If this code looks interesting or useful, you might want to buy the whole book.
| Preface | ||
|---|---|---|
| Code | Expected | Actual | 
| 1 + 2 | 3 | 3 | 
| Math.sqrt(1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10) | 7.41619848709566 | 7.41619848709566 | 
| puts "This string is self-referential." | This string is self-referential. | This string is self-referential. |