AboutNamedAndDefaultArguments test case rgb value exceeds 255

Issue #43 new
hao Wang
created an issue
koan("can default class parameters and have default arguments too") 
{
    val me = new WithClassParametersInClassDefinition()
    val myColor = me.addColorsWithDefaults(green = 70)

    myColor should equal(0, 325, 100)
  }

For the above test case to pass, green must be 325, while 325 > 255, i think this may not make sense as a valid rgb value? should we change the input to let green <= 255?

Comments (4)

  1. Log in to comment