{"id":261,"date":"2020-04-13T00:54:20","date_gmt":"2020-04-12T15:54:20","guid":{"rendered":"https:\/\/blogs.ayasuma.com\/?p=261"},"modified":"2020-04-13T02:22:34","modified_gmt":"2020-04-12T17:22:34","slug":"post-261","status":"publish","type":"post","link":"https:\/\/blogs.ayasuma.com\/index.php\/2020\/04\/13\/post-261\/","title":{"rendered":"TDD\u52c9\u5f37\u65e5\u8a8c \u305d\u306e\uff11"},"content":{"rendered":"\n<p>TDD\u306e\u52c9\u5f37\u30e1\u30e2\u3002\u305d\u306e10\u304f\u3089\u3044\u307e\u3067\u7d9a\u304f\u3068\u5b09\u3057\u3044\u3067\u3059\u3088\u306d\uff08\u4ed6\u4eba\u4e8b\uff09<\/p>\n\n\n\n<p>\u672c\u3092\u4f7f\u3063\u3066\u9032\u3081\u308b\u3002\u4f7f\u3046\u672c\u306f\u3053\u308c\u3002<\/p>\n\n\n\n<figure class=\"wp-block-embed-amazon-kindle wp-block-embed is-type-rich is-provider-amazon\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\" type=\"text\/html\" width=\"880\" height=\"550\" frameborder=\"0\" allowfullscreen style=\"max-width:100%\" src=\"https:\/\/read.amazon.com.au\/kp\/card?preview=inline&#038;linkCode=kpd&#038;ref_=k4w_oembed_4A7BGSpDRNkXqI&#038;asin=B077D2L69C&#038;tag=kpembed-20\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\"><div class=\"sgb-heading__inner sgb-heading--type3\" style=\"background-color:#cee7ff;border-color:#5ba9f7;font-size:1.2em\"><span class=\"sgb-heading__text\" style=\"color:#333\">TDD\u3068\u306f\uff1f<\/span><\/div><\/h2>\n\n\n\n<p>TDD\uff08Test-Driven Development\uff09\u3002\u65e5\u672c\u8a9e\u3067\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u3068\u547c\u3070\u308c\u308b\u3002\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u304c\u76ee\u6307\u3059\u306e\u306f<strong>&#8220;\u52d5\u4f5c\u3059\u308b\u304d\u308c\u3044\u306a\u30b3\u30fc\u30c9&#8221;<\/strong>\u3060\u3002\u6700\u9ad8\u3002\u4e57\u308b\u3063\u304d\u3083\u306a\u3044\u3053\u306e\u30d3\u30c3\u30b0\u30a6\u30a7\u30fc\u30d6\u306b\u3002<\/p>\n\n\n\n<p>\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u306e\u30eb\u30fc\u30eb\u306f\u4ee5\u4e0b\uff12\u3064\u3002\u4ee5\u4e0b2\u3064\u3092\u30eb\u30fc\u30d7\u3059\u308b\u611f\u3058\u3067\u958b\u767a\u3092\u3059\u3059\u3081\u308b\u3002\u4ee5\u4e0b\u306f\u5b8c\u5168\u306b\u672c\u66f8\u304b\u3089\u306e\u5f15\u7528\u3002<\/p>\n\n\n\n<ul><li>\u81ea\u52d5\u5316\u3055\u308c\u305f\u30c6\u30b9\u30c8\u304c\u5931\u6557\u3057\u305f\u3068\u304d\u306e\u307f\u3001\u65b0\u3057\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f<\/li><li>\u91cd\u8907\u3092\u9664\u53bb\u3059\u308b<\/li><\/ul>\n\n\n\n<p>\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u306e\u30bb\u30aa\u30ea\u30fc\u306f\u4ee5\u4e0b\uff08\u672c\u66f8\u3067\u306f\u30de\u30f3\u30c8\u30e9\u3068\u66f8\u3044\u3066\u3044\u305f\u304c\u3001\u3068\u306b\u304b\u304f\u3053\u306e\u3084\u308a\u65b9\u3067\u9032\u3081\u308d\u3068\u3044\u3046\u3053\u3068\uff09\u3002<\/p>\n\n\n\n<p class=\"has-large-font-size\"><strong>\u30ec\u30c3\u30c9\u2192\u30b0\u30ea\u30fc\u30f3\u2192\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0<\/strong><\/p>\n\n\n\n<p>\u304d\u3063\u3068\u587e\u306e\u5148\u751f\u306a\u30891\u56de\u306e\u6388\u696d\u306710\u56de\u306f\u3053\u308c\u3092\u7e70\u308a\u8fd4\u3059\u3060\u308d\u3046\u3002TDD\u304c\u4f1a\u793e\u306a\u3089\u304d\u3063\u3068\u3053\u308c\u3092\u793e\u8a13\u306b\u3059\u308b\u3060\u308d\u3046\u3002\u305d\u3093\u306a\u611f\u3058\u3002\u3068\u306b\u304b\u304f\u3053\u308c\u304c\u91cd\u8981\u3063\u3066\u3053\u3068\u3002<\/p>\n\n\n\n<p>\u305d\u308c\u305e\u308c\u4e00\u8a00\u3067\u8a00\u3046\u3068\u3053\u3046\u3044\u3046\u3053\u3068\u3092\u3084\u308b\u611f\u3058\u3002\u3053\u308c\u3082\u5f15\u7528\u3068\u3055\u305b\u3066\u307b\u3057\u3044\u3002<\/p>\n\n\n\n<ol><li><span class=\"keiko_red\"><strong>\u30ec\u30c3\u30c9<\/strong><\/span>\uff1a\u52d5\u4f5c\u3057\u306a\u3044\u3001\u304a\u305d\u3089\u304f\u6700\u521d\u306e\u3046\u3061\u306f\u30b3\u30f3\u30d1\u30a4\u30eb\u3082\u901a\u3089\u306a\u3044\u30c6\u30b9\u30c8\u30921\u3064\u66f8\u304f\u3002<\/li><li><span class=\"keiko_green\"><strong>\u30b0\u30ea\u30fc\u30f3<\/strong><\/span>\uff1a\u305d\u306e\u30c6\u30b9\u30c8\u3092\u8fc5\u901f\u306b\u52d5\u4f5c\u3055\u305b\u308b\u3002\u3053\u306e\u30b9\u30c6\u30c3\u30d7\u3067\u306f\u7f6a\u3092\u72af\u3057\u3066\u3082\u3088\u3044\u3002<\/li><li><span class=\"keiko_blue\"><strong>\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0<\/strong><\/span>\uff1a\u30c6\u30b9\u30c8\u3092\u901a\u3059\u305f\u3081\u306b\u767a\u751f\u3057\u305f\u91cd\u8907\u3092\u3059\u3079\u3066\u9664\u53bb\u3059\u308b\u3002<\/li><\/ol>\n\n\n\n<p>\u307e\u3060\u8aad\u3093\u3060\u3070\u3063\u304b\u308a\u3060\u3051\u3069\u3001\u79c1\u304c\u5f15\u7528\u3057\u3066\u3044\u308b\u3068\u3053\u308d\u3092\u610f\u8b58\u3057\u3066\u3072\u305f\u3059\u3089\u9032\u3081\u308b\u3001\u8eab\u4f53\u306b\u306b\u3058\u307f\u3053\u307e\u305b\u308b\u3002\u305d\u308c\u304c\u3060\u3044\u2026\u305d\u308c\u304c\u301c\u4e00\u756a\u5927\u4e8b\u301c\u306a\u3093\u3060\u3068\u601d\u3046\u3002\u5fc3\u306b\u523b\u3082\u3046\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u304b\u3089\u5148\u306f\u5177\u4f53\u7684\u306b\u672c\u66f8\u306b\u7fd2\u3063\u3066\u30b3\u30fc\u30c9\u3092\u66f8\u304d\u306a\u304c\u3089\u79c1\u306e\u30e1\u30e2\u53d6\u308a\u3068\u3057\u3066\u4f7f\u3046\u3002\u8aad\u3093\u3067\u304f\u308c\u3066\u3044\u308b\u7686\u3055\u3093\u306e\u305f\u3081\u306b\u306a\u308b\u3068\u306f\u3042\u3093\u307e\u308a\u601d\u308f\u306a\u3044\u306e\u3067\u3053\u3053\u307e\u3067\u8aad\u3093\u3067\u3044\u305f\u3060\u3051\u308c\u3070\u826f\u3044\u3068\u601d\u3046\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:#5ba9f7;color:#FFF\" class=\"sgb-box-simple__title\">\u3053\u306e\u898b\u51fa\u3057\u306e\u307e\u3068\u3081<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:#5ba9f7;background-color:#FFF\">\n<ul><li><strong>2\u3064\u306e\u30eb\u30fc\u30eb\u3092\u9075\u5b88<\/strong><\/li><\/ul>\n\n\n\n<ul><li><strong>\u30ec\u30c3\u30c9\u2192\u30b0\u30ea\u30fc\u30f3\u2192\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0<\/strong><\/li><\/ul>\n<\/div><\/div>\n\n\n\n<h2 class=\"wp-block-sgb-headings sgb-heading\"><div class=\"sgb-heading__inner sgb-heading--type3\" style=\"background-color:#cee7ff;border-color:#5ba9f7;font-size:1.2em\"><span class=\"sgb-heading__text\" style=\"color:#333\">\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u3051<\/span><\/div><\/h2>\n\n\n\n<p>\u3067\u3001\u672c\u66f8\u306e\u7b2c1\u7ae0\u3067\u306f\u56fd\u969b\u901a\u8ca8\u3092\u63db\u7b97\u3059\u308b\u30e2\u30c7\u30eb\u306e\u958b\u767a\u3092\u901a\u3057\u3066TDD\u3092\u5b66\u3076\u3002\u307e\u305a\u3084\u308b\u3079\u304d\u306f\u7c21\u5358\u306a\u6761\u4ef6\u3067\u30c6\u30b9\u30c8\u3092\u901a\u3059\u3053\u3068\u3002<\/p>\n\n\n\n<p>\u7570\u306a\u308b2\u3064\u306e\u901a\u8ca8\u306b\u5bfe\u3057\u3066\u3082\u3046\u4e00\u65b9\u3092\u63db\u7b97\u3057\u3066\u5408\u8a08\u5024\u3092\u51fa\u3059\u3088\u3046\u306b\u3059\u308b\u30e2\u30c7\u30eb\u306e\u958b\u767a\u3092\u3059\u308b\u3002\u305d\u308c\u306b\u3042\u305f\u308aToDo\u30ea\u30b9\u30c8\u3092\u4f5c\u308b\u3002<strong><span class=\"keiko_yellow\">ToDo\u30ea\u30b9\u30c8\u306b\u3084\u308b\u3053\u3068\u3092\u601d\u3044\u3064\u3044\u305f\u3089\u30d0\u30f3\u30d0\u30f3\u5165\u308c\u308b\u306e\u304c\u826f\u3044\u3089\u3057\u3044\u3002<\/span><\/strong>Todo\u30ea\u30b9\u30c8\u306f\u4ee5\u4e0b\u3060\u3002<\/p>\n\n\n\n<p class=\"has-background has-sango-silver-background-color\"><span style=\"text-decoration: underline;\">Todo\u30ea\u30b9\u30c8<\/span><br>\u25a1$5 + 10CHF=$10 (\uff0aCHF\uff1a\u30b9\u30a4\u30b9\u30d5\u30e9\u30f3\uff09<br>\u25a1$5 * 2 = $10<\/p>\n\n\n\n<p>ToDo\u30ea\u30b9\u30c8\u306e\u4f7f\u3044\u65b9\u3002\u4f55\u5ea6\u3067\u3082\u8a00\u3063\u3066\u826f\u3055\u305d\u3046\u306a\u306e\u3067\u91cd\u8907\u3059\u308b\u3068\u3053\u308d\u3082\u3042\u308b\u304c\u66f8\u304f\u3002<br>\u30fb<span class=\"keiko_yellow\">\u601d\u3044\u3064\u3044\u305f\u3089\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3002<\/span><br>\u30fb<span class=\"keiko_blue\">\u30ea\u30b9\u30c8\u306eToDo\u3092\u3069\u3093\u3069\u3093\u89e3\u6d88\u3057\u3066\u3044\u304f\u3002<\/span><br>\u30fb<span class=\"keiko_yellow\">\u601d\u3044\u3064\u3044\u305fToDo\u306f\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u3002<\/span><br>\u30fb<span class=\"keiko_blue\">ToDo\u3092\u3069\u3093\u3069\u3093\u89e3\u6d88\u3002\u601d\u3044\u3064\u3044\u305f<\/span>&#8230;<span class=\"keiko_red\">\u30a8\u30f3\u30c9\u30ec\u30b9\u30b5\u30de\u30fc<\/span><br><\/p>\n\n\n\n<p class=\"has-normal-font-size\">\u307e\u305a\u306f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3002\u30c6\u30b9\u30c8\u30d5\u30a1\u30fc\u30b9\u30c8\u3068\u3044\u3046\u3053\u3068\u3067\u307e\u305a\u30c6\u30b9\u30c8\u3092\u4f5c\u308b\u3068\u3044\u3046\u3053\u3068\u3002<\/p>\n\n\n\n<p class=\"has-medium-font-size\"><strong>\u672c\u66f8\u306b\u3082\u66f8\u3044\u3066\u3042\u308b\u304c\u300c\u3058\u3083\u3042\u5b9f\u88c5\u306b\u3069\u3093\u306a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u304c\u5fc5\u8981\u306a\u3093\u3060\u308d\u3046\u2026\uff1f\u300d\u3058\u3083\u306a\u3044\u306e\u3060\u3002\u307e\u305a\u306f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u66f8\u3051\u3002\u8a71\u306f\u305d\u308c\u304b\u3089\u3060\u3002<\/strong><\/p>\n\n\n\n<p>\uff08\u306a\u3093\u304b\u3072\u3068\u308a\u66ae\u3089\u3057\u306f\u30d4\u30b6\u3092\u713c\u3051\u306e\u8a18\u4e8b\u307f\u305f\u3044\u3060\uff09<\/p>\n\n\n\n<p>\u3093\u3067\u3001\u3055\u3063\u304d\u306eToDo\u30ea\u30b9\u30c8\u30022\u3064\u3042\u308b\u3002\u7c21\u5358\u306a\u306e\u306f\u3069\u3063\u3061\u3060\u3002\u5727\u5012\u7684\u306b\u5f8c\u8005\u3002<span class=\"keiko_yellow\">\u7c21\u5358\u306a\u65b9\u304b\u3089\u59cb\u3081\u308b<\/span>\u3002\u624b\u3092\u52d5\u304b\u305b\u3002\u307e\u305a\u306f$5 * 2 = $10\u3092\u5b9f\u73fe\u3057\u308d\u3002<\/p>\n\n\n\n<p>\u672c\u66f8\u3067\u306fJava\u3067\u66f8\u304b\u308c\u3066\u3044\u308b\u304c\u3001\u79c1\u306fPython\u3067\u3084\u308a\u305f\u3044\u306e\u3067Python\u3067\u66f8\u304d\u76f4\u3057\u306a\u304c\u3089\u9032\u3081\u308b\u3002\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u306f\u4ee5\u4e0b\u3002<\/p>\n\n\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#MoneyTest.py\nfrom money import Dollar as Dollar\nimport unittest\n\nclass MoneyTest(unittest.TestCase):\n    def testMultiplication(self):\n        five = Dollar(5)\n        five.times(2)\n        self.assertEqual(10,five.amount)\n<\/pre>\n\n\n<p>\u3053\u306e\u30c6\u30b9\u30c8\u3092\u5f90\u306b\u66f8\u304f\u3053\u3068\u3067\u300c\u3053\u308c\u3084\u3089\u306a\u2026\u300d\u3063\u3066\u306e\u304c\u30dd\u30f3\u30dd\u30f3\u51fa\u3066\u304f\u308b\u3002\u4f5c\u6cd5\u7684\u306b\u3088\u308d\u3057\u304f\u306a\u3044\u3060\u308d\u307f\u305f\u3044\u306a\u3002\u3067\u3082\u3001\u305d\u3046\u3044\u3046<strong><span class=\"keiko_yellow\">\u6c17\u3065\u3044\u305f\u554f\u984c\u306f\u4e00\u65e6ToDo\u306b\u66f8\u304f\u3060\u3051\u306b\u3057\u3066\u5f8c\u306b\u56de\u3059<\/span><\/strong>\u3002<\/p>\n\n\n\n<p>\u4eca\u306f\u307e\u305a$5 * 2 = $10\u3060\u3002Dollar\u30af\u30e9\u30b9\u304c\u7121\u3044\u3088\u3001\u305d\u306e\u4e2d\u8eab\u306e\u30e1\u30bd\u30c3\u30c9\u304c\u7121\u3044\u3088\u3068\u6012\u3089\u308c\u3066\u3044\u308b\u3002\u3082\u3061\u308d\u3093\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u3089\u3067\u304d\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u306a\u306e\u3067\u6b21\u306e\u601d\u8003\u306e\u30d9\u30af\u30c8\u30eb\u306f<strong><span class=\"keiko_yellow\">\u6700\u4f4e\u9650\u52d5\u304b\u3059\u305f\u3081\u306e\u5b9f\u88c5\uff08\u30ec\u30c3\u30c9\u30d0\u30fc\u3092\u8868\u793a\u3055\u305b\u3088\uff09<\/span><\/strong>\u306b\u306a\u308b\u3002\u95a2\u6570\u306f\u4e2d\u8eab\u7121\u304f\u3066\u826f\u3044\u3002\u30a8\u30e9\u30fc\u3092\u7121\u304f\u3059\u3002\u3053\u306e\u969b\u306b\u6c17\u3092\u3064\u3051\u308b\u3053\u3068\u306f<strong><span class=\"keiko_yellow\">\u4e00\u3064\u4e00\u3064\u30b3\u30f3\u30d1\u30a4\u30eb\u30a8\u30e9\u30fc\u3092\u89e3\u6c7a\u3057\u3066\u3044\u304f\u3053\u3068\u3060<\/span><\/strong>\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u601d\u8003\u306b\u3088\u308a\u66f8\u3044\u305f\u30af\u30e9\u30b9\u304c\u4ee5\u4e0b\u3002<\/p>\n\n\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#Dollar.py\n#import money\n\nclass Dollar:\n    def __init__(self, amount: int):\n        self.amount = amount\n\n    def times(self, multiplier: int):\n        pass\n<\/pre>\n\n\n<p>\u3053\u308c\u3067\u30ec\u30c3\u30c9\u30d0\u30fc\u304c\u51fa\u308b\u3002<br>\u5177\u4f53\u7684\u306b\u8a00\u3046\u3068&#8221;AssertionError: 10 != 0&#8243;\u304c\u51fa\u308b\u3002<\/p>\n\n\n\n<p>\u6b21\u306f\u3053\u308c\u3092\u30b0\u30ea\u30fc\u30f3\u30d0\u30fc\u306b\u3059\u308b\u3002\u3053\u306e\u3068\u304d\u306b\u610f\u8b58\u3059\u308b\u3053\u3068\u306f\u3001<strong><span class=\"keiko_yellow\">\u30b0\u30ea\u30fc\u30f3\u306b\u306a\u308a\u3055\u3048\u3059\u308c\u3070\u826f\u3044\u3068\u3044\u3046\u3053\u3068<\/span><\/strong>\u3002\u3069\u3046\u3044\u3046\u3053\u3068\u304b\u3068\u8a00\u3046\u3068\u3001\u306a\u3093\u3068\u306a\u304f__initi__()\u3068times()\u3092\u5177\u4f53\u7684\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3057\u305f\u304f\u306a\u308b\u3068\u601d\u3046\u3093\u3060\u3051\u3069\u3001\u305d\u308c\u306f\u307e\u3060\u3002\u6b63\u89e3\u306f\u3053\u3046\u3002amount\u306b10\u3092\u76f4\u3067\u5165\u308c\u308b\u3002<\/p>\n\n\n<pre class=\"brush: python; highlight: [3]; title: ; notranslate\" title=\"\">\nclass Dollar:\n    def __init__(self, amount: int):\n        self.amount = 10\n<\/pre>\n\n\n<p>\u78ba\u304b\u306b\u3002\u306a\u308b\u307b\u3069\u3002\u3053\u308c\u304c\u30b0\u30ea\u30fc\u30f3\u30d0\u30fc\u306b\u306a\u308b\u6700\u77ed\u30b3\u30fc\u30b9\u3060\u3002<\/p>\n\n\n\n<p>\u6700\u5f8c\u306b\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3002\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u4e2d\u3067\u8272\u3093\u306a\u3053\u3068\u304cToDo\u306b\u5165\u3063\u3066\u304d\u3066\u3044\u308b\u3068\u306f\u601d\u3046\u304c\u3001\u305d\u308c\u306f\u4e00\u65e6\u7f6e\u304f\u3002\u4eca\u306f\u76ee\u5148\u306e$5 * 2 = $10\u3092\u5b9f\u73fe\u3059\u308b\u305f\u3081\u306e\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3092\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u3067\u610f\u8b58\u3059\u308b\u3053\u3068\u306f\u91cd\u8907\u306e\u9664\u53bb\u3060\u3002\u91cd\u8907\u3068\u3044\u3046\u306e\u306f<strong><span class=\"keiko_yellow\">\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3068\u5b9f\u969b\u306e\u30af\u30e9\u30b9\u3068\u306e\u91cd\u8907<\/span><\/strong>\u3060\u3002<br>\u5177\u4f53\u7684\u306b\u8a00\u3046\u3068\u3001Dollar\u30af\u30e9\u30b9\u3067amount\u306b\u5165\u308c\u305f10\u306f5 *2\u3060\u3057\u3001\u3053\u306e5\u30682\u306f\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3067\u66f8\u304b\u308c\u308b\u306e\u3067\u3001Dollar\u30af\u30e9\u30b9\u306b\u76f4\u66f8\u304d\u3055\u308c\u308b\u3079\u304d\u3067\u306f\u306a\u3044\u3002\u305d\u3046\u3059\u308b\u3068\u3053\u306e\u91cd\u8907\u3092\u9664\u53bb\u3059\u308b\u305f\u3081\u306b\u5177\u4f53\u7684\u306b\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u3053\u3068\u306b\u306a\u308b\u3002<br>\u3082\u3046\u4e00\u5ea6\u8a00\u3046\u3002<strong><span class=\"keiko_yellow\">1\u30641\u3064ToDo\u3092\u89e3\u6d88\u3057\u3066\u3044\u304f\u3053\u3068\u304c\u5927\u4e8b<\/span><\/strong>\u3002\u4e00\u6c17\u306b\u89e3\u6c7a\u3057\u3088\u3046\u3068\u3057\u306a\u3044\u3002<\/p>\n\n\n\n<p>\u3055\u3089\u306b\u8ffd\u52a0\u3067\u8a00\u3046\u3002ToDo\u30921\u3064\u305a\u3064\u89e3\u6d88\u3068\u8a00\u3063\u305f\u304c\u3001<strong><span class=\"keiko_yellow\">\u30c6\u30b9\u30c8\u3092\u56de\u3059\u306e\u306f\u3082\u3063\u3068\u7d30\u304b\u3044\u5358\u4f4d\u3067\u884c\u3046<\/span><\/strong>\u30021\u3064\u5909\u66f4\u3092\u52a0\u3048\u305f\u3089\u3059\u3050\u30c6\u30b9\u30c8\u3057\u3066\u30b0\u30ea\u30fc\u30f3\u30d0\u30fc\u304c\u7dad\u6301\u3055\u308c\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/p>\n\n\n\n<p>\u5909\u66f4\u304b\u3051\u3066\u30c6\u30b9\u30c8\u3002\u5909\u66f4\u304b\u3051\u3066\u30c6\u30b9\u30c8\u3002\u5909\u66f4\u304b\u3051\u3066\u2026\u3002\u91cd\u8907\u3092\u9664\u53bb\u3057\u305f\u7d50\u679c\u304c\u4ee5\u4e0b\u3002\u3053\u308c\u306b\u3088\u308aToDo\u304c1\u3064\u6e1b\u308b\u3002<\/p>\n\n\n<pre class=\"brush: python; title: ; notranslate\" title=\"\">\n#Dollar.py\n#import money\n\nclass Dollar:\n    def __init__(self, amount: int):\n        self.amount = amount\n\n    def times(self, multiplier: int):\n        self.amount *=multiplier\n\n<\/pre>\n\n\n<p class=\"has-background has-sango-silver-background-color\"><span style=\"text-decoration: underline;\">Todo\u30ea\u30b9\u30c8<\/span><br>\u25a1$5 + 10CHF=$10 (\uff0aCHF\uff1a\u30b9\u30a4\u30b9\u30d5\u30e9\u30f3\uff09<br><strong>\u2611$5 * 2 = $10<\/strong><br>\u25a1\u65b0\u305f\u306aToDo\uff08Dollar\u306e\u526f\u4f5c\u7528\uff09<br>\u25a1\u65b0\u305f\u306aToDo\uff08\u305d\u306e\u4ed6\uff09<br>\u25a1&#8230;<\/p>\n\n\n\n<p>\u4ee5\u4e0a\u3002\u307e\u3068\u3081\u308b\u3002\u591a\u3044\u3051\u3069\u3053\u306e\u901a\u308a\u306b\u3084\u308b\u3002<\/p>\n\n\n\n<div class=\"wp-block-sgb-block-simple sgb-box-simple sgb-box-simple--title-normal sgb-box-simple--with-border\"><div style=\"background-color:#5ba9f7;color:#FFF\" class=\"sgb-box-simple__title\">\u3053\u306e\u898b\u51fa\u3057\u306e\u307e\u3068\u3081<\/div><div class=\"sgb-box-simple__body\" style=\"border-color:#5ba9f7;background-color:#FFF\">\n<ul><li>ToDo\u30ea\u30b9\u30c8\u3092\u4f5c\u308b<\/li><li>\u30c6\u30b9\u30c8\u30b3\u30fc\u30c9\u3092\u7c21\u5358\u3067\u826f\u3044\u304b\u3089\u4f5c\u308b\u3002\u901a\u3089\u306a\u304f\u3066\u3044\u3044\u3002<\/li><li>\u30ec\u30c3\u30c9\u30d0\u30fc\u3092\u51fa\u3059\u305f\u3081\u306e\u6700\u77ed\u30b3\u30fc\u30b9\u306e\u5909\u66f4\u3092\u304b\u3051\u308b\u3002\u30a8\u30e9\u30fc\u3092\u7121\u304f\u3059\u3002<\/li><li>\u6d6e\u304b\u3093\u3060\u554f\u984c\u3092ToDo\u30ea\u30b9\u30c8\u306b\u5165\u308c\u308b\u3002<\/li><li>\u30ec\u30c3\u30c9\u30d0\u30fc\u3092\u30b0\u30ea\u30fc\u30f3\u30d0\u30fc\u306b\u3059\u308b\u305f\u3081\u306e\u6700\u77ed\u30b3\u30fc\u30b9\u306e\u5909\u66f4\u3092\u304b\u3051\u308b\u3002<\/li><li>\u30ea\u30d5\u30a1\u30af\u30bf\u30ea\u30f3\u30b0\u306b\u3066\u91cd\u8907\u3092\u9664\u53bb\u3059\u308b\u3002<\/li><li>ToDo\u304c1\u3064\u6e1b\u308b\u3002\u305d\u3057\u3066\u65b0\u305f\u306aToDo\u306b\u7740\u624b\u3059\u308b\u3002<\/li><\/ul>\n<\/div><\/div>\n\n\n\n<p>\u3068\u308a\u3042\u3048\u305a\u3053\u306e\u8a18\u4e8b\u3067\u306f\u4ee5\u4e0a\u3002\u307e\u305f\u4eca\u5ea6\u66f8\u304f\u5fc5\u8981\u304c\u51fa\u305f\u3089\u66f8\u304f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TDD\u306e\u52c9\u5f37\u30e1\u30e2\u3002\u305d\u306e10\u304f\u3089\u3044\u307e\u3067\u7d9a\u304f\u3068\u5b09\u3057\u3044\u3067\u3059\u3088\u306d\uff08\u4ed6\u4eba\u4e8b\uff09 \u672c\u3092\u4f7f\u3063\u3066\u9032\u3081\u308b\u3002\u4f7f\u3046\u672c\u306f\u3053\u308c\u3002 TDD\uff08Test-Driven Development\uff09\u3002\u65e5\u672c\u8a9e\u3067\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u3068\u547c\u3070\u308c\u308b\u3002\u30c6\u30b9\u30c8\u99c6\u52d5\u958b\u767a\u304c\u76ee\u6307\u3059\u306e\u306f &#8230; <\/p>\n","protected":false},"author":1,"featured_media":270,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[4],"tags":[],"_links":{"self":[{"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/posts\/261"}],"collection":[{"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/comments?post=261"}],"version-history":[{"count":19,"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions"}],"predecessor-version":[{"id":290,"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/posts\/261\/revisions\/290"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/media\/270"}],"wp:attachment":[{"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/media?parent=261"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/categories?post=261"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.ayasuma.com\/index.php\/wp-json\/wp\/v2\/tags?post=261"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}