タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

scalaとjavaに関するPaulYamamotoのブックマーク (1)

  • Spek - A Specification Framework

    Your typical test code Here’s some typical test code found in many codebases @Test public void testCalculateTaxRate() { TaxRateCalculator calculator = new TaxRateCalculator(); Int value = calculator.calculateRate(200, 10); assertEquals(300,value); } This code suffers from several issues. Under what conditions is the tax rate calculated? What exactly is it doing? What is the expected outcome? Being

    PaulYamamoto
    PaulYamamoto 2014/02/18
    Rubyspecのjava/scala版、Koltinとも互換性あり。jetbrainsが開発してるのかー。
  • 1