{"url":"https://masasuzu.hatenablog.jp/entry/20090314/1247889106","width":"100%","blog_url":"https://masasuzu.hatenablog.jp/","author_url":"https://blog.hatena.ne.jp/masasuz/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmasasuzu.hatenablog.jp%2Fentry%2F20090314%2F1247889106\" title=\"\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u9580\u3092Ruby\u3067\u5199\u7d4c\u3057\u3066\u307f\u305f\u3002 3 - \u76ee\u306e\u524d\u306b\u50d5\u3089\u306e\u9053\u304c\u3042\u308b\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","categories":["programing","TDD","Ruby"],"title":"\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u9580\u3092Ruby\u3067\u5199\u7d4c\u3057\u3066\u307f\u305f\u3002 3","height":"190","author_name":"masasuz","image_url":"http://ecx.images-amazon.com/images/I/51G6YEDVRKL.jpg","version":"1.0","type":"rich","blog_title":"\u76ee\u306e\u524d\u306b\u50d5\u3089\u306e\u9053\u304c\u3042\u308b","description":"\u7b2c3\u7ae0 # !/usr/bin/ruby # coding : utf-8 # \u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u5165\u95803\u7ae0 require 'test/unit' class Test_Money < Test::Unit::TestCase def test_multiplication five = Dollar.new(5) product = five.times(2) assert_equal(10, product.get_amount) product = five.times(3) assert_equal(15, product.get_amount) end def test_equality\u2026","provider_url":"https://hatena.blog","provider_name":"Hatena Blog","published":"2009-03-14 12:51:46"}