Scala: Tests add missing }, use === in assert

This commit is contained in:
Louis Pilfold 2014-11-03 11:31:06 +00:00
parent d9b90b8b03
commit db48e036a6

View File

@ -298,19 +298,25 @@ snippet scalatest
${0:import org.scalatest.FunSuite} ${0:import org.scalatest.FunSuite}
#assert #assert
snippet assert snippet assert
assert(${1:a}==${0:b}) assert(${1:a} === ${0:b})
#ensuring(p 296) #ensuring(p 296)
snippet ensuring snippet ensuring
ifel ensuring(${1:a}==${0:b}) ifel ensuring(${1:a}==${0:b})
#expect #expect
snippet expect snippet expect
expect(${0:what}) { expect(${1:what}) {
${0}
}
#intercept #intercept
snippet intercept snippet intercept
intercept[${0:IllegalArgumentException}] { intercept[${1:IllegalArgumentException}] {
${0}
}
#test #test
snippet test snippet test
test("${0:description}") { test("${1:description}") {
${0}
}
#suite #suite
snippet suite snippet suite
class ${0:name} extends Suite { class ${0:name} extends Suite {