Skip to content

Commit 66e135a

Browse files
committed
Add condition to check truncation in markdown render test
Signed-off-by: Jason T. Brown <jason@astraea.earth>
1 parent abb8f4e commit 66e135a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/src/test/scala/org/locationtech/rasterframes/ExtensionMethodSpec.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,13 @@ class ExtensionMethodSpec extends TestEnvironment with TestData with SubdivideSu
113113
}
114114

115115
it("should render Markdown") {
116+
import org.apache.spark.sql.functions.lit
117+
116118
val md = rf.toMarkdown()
117119
md.count(_ == '|') shouldBe >=(3 * 5)
118120
md.count(_ == '\n') should be >= 6
119121

120-
val md2 = rf.toMarkdown(truncate=true)
122+
val md2 = rf.withColumn("long_string", lit("p" * 42)).toMarkdown(truncate=true)
121123
md2 should include ("...")
122124
}
123125

0 commit comments

Comments
 (0)