Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
code review
  • Loading branch information
rxin committed Nov 19, 2015
commit 91f4f68f3d2524ee43efef47c32e42b61268ebc0
Original file line number Diff line number Diff line change
Expand Up @@ -246,12 +246,13 @@ class AnalysisSuite extends AnalysisTest {
val max = DateTimeUtils.millisToDays(System.currentTimeMillis())

val lits = new scala.collection.mutable.ArrayBuffer[Int]
plan.transformAllExpressions{ case e: Literal =>
plan.transformAllExpressions { case e: Literal =>
lits += e.value.asInstanceOf[Int]
e
}
assert(lits.size == 2)
assert(lits(0) >= min && lits(0) <= max)
assert(lits(1) >= min && lits(1) <= max)
assert(lits(0) == lits(1))
}
}