Skip to content

Instantly share code, notes, and snippets.

@jbrechtel
Created January 24, 2011 01:36
Show Gist options
  • Select an option

  • Save jbrechtel/792666 to your computer and use it in GitHub Desktop.

Select an option

Save jbrechtel/792666 to your computer and use it in GitHub Desktop.
package com.nevercertain.wifipasswords
import org.scalatest.matchers.ShouldMatchers
import org.scalatest.Spec
class WifiNetworkSpecs extends Spec with ShouldMatchers {
describe("comparing a network") {
it("should be equal to a network whose name differs only in case") {
val network1 = new WifiNetwork("R", "111", NetworkType.OPEN)
val network2 = new WifiNetwork("r", "111", NetworkType.OPEN)
network1.compare(network2) should equal (0)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment