Skip to content

Instantly share code, notes, and snippets.

Yusuke Wada cm-wada-yusuke

Block or report user

Report or block cm-wada-yusuke

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@cm-wada-yusuke
cm-wada-yusuke / ClosedRange.scala
Last active Aug 3, 2017
2017年8月1日(火)TDDワークショップ Scala チーム成果物 課題はこれ:http://bit.ly/2uEATGA ブログはこれ:http://dev.classmethod.jp/event/twada-tdd-workshop-sapporo-report/
View ClosedRange.scala
package tdd
class ClosedRange(val lowerEndpoint: Int, val upperEndpoint: Int) {
if (lowerEndpoint > upperEndpoint) {
throw new IllegalArgumentException
}
override def toString: String = s"[$lowerEndpoint,$upperEndpoint]"
You can’t perform that action at this time.