From db48e036a60ea976bcfd78760518cbeed8865fd4 Mon Sep 17 00:00:00 2001 From: Louis Pilfold Date: Mon, 3 Nov 2014 11:31:06 +0000 Subject: [PATCH] Scala: Tests add missing }, use === in assert --- snippets/scala.snippets | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/snippets/scala.snippets b/snippets/scala.snippets index f824ee2..003081e 100644 --- a/snippets/scala.snippets +++ b/snippets/scala.snippets @@ -298,19 +298,25 @@ snippet scalatest ${0:import org.scalatest.FunSuite} #assert snippet assert - assert(${1:a}==${0:b}) + assert(${1:a} === ${0:b}) #ensuring(p 296) snippet ensuring ifel ensuring(${1:a}==${0:b}) #expect snippet expect - expect(${0:what}) { + expect(${1:what}) { + ${0} + } #intercept snippet intercept - intercept[${0:IllegalArgumentException}] { + intercept[${1:IllegalArgumentException}] { + ${0} + } #test snippet test - test("${0:description}") { + test("${1:description}") { + ${0} + } #suite snippet suite class ${0:name} extends Suite {