Skip to content

Commit a92fbcb

Browse files
committed
add test for identity function
1 parent 2fb7cbd commit a92fbcb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/test/scala/com/github/dwickern/macros/NameOfTest.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ class NameOfTest extends AnyFunSuite with Matchers {
7474
nameOf(generic(???)) should equal ("generic")
7575
}
7676

77+
test("identity function") {
78+
nameOf[String](x => x) should equal ("x")
79+
qualifiedNameOf[String](x => x) should equal ("")
80+
}
81+
7782
test("instance member") {
7883
class SomeClass(val foobar: String)
7984
val myClass = new SomeClass("")

0 commit comments

Comments
 (0)