Skip to content

Instantly share code, notes, and snippets.

@florianleibert
Created June 1, 2012 17:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save florianleibert/2853933 to your computer and use it in GitHub Desktop.
Save florianleibert/2853933 to your computer and use it in GitHub Desktop.
"properly parse expression" in {
val expected = (5L, DateTime.parse("2008-03-01T13:00:00Z"), new Period(Days.ONE))
val tuple = Iso8601ExpressionParser.parseExpression("R5/2008-03-01T13:00:00Z/P1D")
tuple must be_== (expected)
}
....
Error
'(5,2008-03-01T13:00:00.000Z,P1D)': anon is not equal to '(5,2008-03-01T13:00:00.000Z,P1D)': scala.Tuple3
Expected :(5,2008-03-01T13:00:00.000Z,P1D)
Actual :(5,2008-03-01T13:00:00.000Z,P1D)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment