<NME> ElmRecordCompletionTest.kt
<BEF> ADDFILE
<MSG> Add code completion for accessing fields in a record (#141)

* Add code completion for accessing fields in a record

* Tighten up the tests and some of the keyword completions

<DFF> @@ -0,0 +1,49 @@
+package org.elm.lang.core.completion
+
+class ElmRecordCompletionTest : ElmCompletionTestBase() {
+
+
+    fun `test access name field from one letter`() = doSingleCompletion(
+            """
+type alias Foo = { name : String }
+f : Foo -> String
+f foo =
+    foo.n{-caret-}
+""", """
+type alias Foo = { name : String }
+f : Foo -> String
+f foo =
+    foo.name{-caret-}
+""")
+
+
+    fun `test access name field from blank`() = doSingleCompletion(
+            """
+type alias Foo = { name : String }
+f : Foo -> String
+f foo =
+    foo.{-caret-}
+""", """
+type alias Foo = { name : String }
+f : Foo -> String
+f foo =
+    foo.name{-caret-}
+""")
+
+
+    fun `test chained field access`() = doSingleCompletion(
+            """
+type alias Foo = { name : { first: String } }
+
+f : Foo -> String
+f foo =
+    foo.name.fir{-caret-}
+""", """
+type alias Foo = { name : { first: String } }
+
+f : Foo -> String
+f foo =
+    foo.name.first{-caret-}
+""")
+
+}
\ No newline at end of file

Add code completion for accessing fields in a record (#141)