Skip to content

Commit

Permalink
fq enum completion
Browse files Browse the repository at this point in the history
  • Loading branch information
mkurnikov committed Sep 30, 2024
1 parent 0471c3d commit d1d95b7
Showing 1 changed file with 2 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -340,30 +340,14 @@ class StructsCompletionTest: CompletionTestCase() {
module 0x1::m {
enum Color { Red, Blue }
fun main() {
0x1::m::Col/*caret*/
let s: 0x1::m::Col/*caret*/
}
}
""", """
module 0x1::m {
enum Color { Red, Blue }
fun main() {
0x1::m::Color/*caret*/
}
}
""")

fun `test fq enum item completion`() = doSingleCompletion("""
module 0x1::m {
enum Color { Red, Blue }
fun main() {
0x1::m::Color::R/*caret*/
}
}
""", """
module 0x1::m {
enum Color { Red, Blue }
fun main() {
0x1::m::Color::Red/*caret*/
let s: 0x1::m::Color/*caret*/
}
}
""")
Expand Down

0 comments on commit d1d95b7

Please sign in to comment.