提交 0d02abe3 编写于 作者: 梦境迷离's avatar 梦境迷离

add test

上级 0805c2ad
......@@ -22,7 +22,7 @@ Learn Scala macro and abstract syntax tree.
# Environment
- Compile passed in Java 8、11
- Compile passed in Scala 2.11.12、2.12.14、2.13.6
- Compile passed in Scala 2.11.12、2.12.14、2.13.8
# Document
......
......@@ -22,7 +22,7 @@
# 环境
- Java 8、11 编译通过
- Scala 2.11.12、2.12.14、2.13.6 编译通过
- Scala 2.11.12、2.12.14、2.13.8 编译通过
# 文档
......
......@@ -154,4 +154,12 @@ class CustomConverterBuilderTest extends AnyFlatSpec with Matchers {
println(scala)
assert(scala.get == e)
}
"CustomConverterBuilder9" should "fail if case class has currying" in {
"""
|case class Test(i:Int)(j:String)
| val t = Test(1)("hello")
| CsvableBuilder[Test].build(t).toCsvString
|""".stripMargin shouldNot compile
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册