<NME> ElmMakeDeclarationIntentionTest.kt
<BEF> ADDFILE
<MSG> add an intention action to create a function skeleton from a type annotation (#27)

Unresolved type annotations are no longer marked as errors. Instead
they are marked as weak warnings and provide an intention/quick-fix
to generate the function declaration skeleton.
<DFF> @@ -0,0 +1,39 @@
+package org.elm.ide.intentions
+
+class ElmMakeDeclarationIntentionTest: ElmIntentionTestBase(ElmMakeDeclarationIntentionAction()) {
+
+
+    fun `test make value declaration`() {
+        doAvailableTest(
+"""
+f : Int{-caret-}
+"""
+, """
+f : Int
+f = {-caret-}
+""")}
+
+
+    fun `test make basic function declaration`() {
+        doAvailableTest(
+"""
+f : Int -> Int{-caret-}
+"""
+, """
+f : Int -> Int
+f int = {-caret-}
+""")}
+
+
+    fun `test make advanced function declaration`() {
+        doAvailableTest(
+"""
+f : (Int -> Int) -> List a -> (Char, String) -> { foo : Int } -> Bool{-caret-}
+"""
+, """
+f : (Int -> Int) -> List a -> (Char, String) -> { foo : Int } -> Bool
+f function list tuple record = {-caret-}
+""")}
+
+
+}
\ No newline at end of file

add an intention action to create a function skeleton from a type annotation (#27)