Rubyã®ãªãã¡ã¯ã¿ãªã³ã°ã§ã¤ã±ã¦ãªãã³ã¼ããç¾ãããªãã¸ã§ã¯ãæåè¨è¨ã®ã³ã¼ãã¸æ¹è¯ããããã®æ¹æ³ - ãã®ï¼ ãã®2 ãã®3 ããã Python ã§ãã£ã¦ã¿ã¾ã å ã®ã³ã¼ã å ã® Ruby çãã§ããã ãçä¼¼ãã¦ã¿ã¾ãããã¹ã㯠py.test ã使ãã¾ãã #ordersreport.py from collections import namedtuple Order = namedtuple("Order", "amount placed_at") class OrdersReport: def __init__(self, orders, start_date, end_date): self.orders = orders self.start_date = start_date self.end_date = end_date def total_sales_within
{{#tags}}- {{label}}
{{/tags}}