Skip to content

Commit

Permalink
MONDRIAN: Test case assertion was assuming line endings are \n on all…
Browse files Browse the repository at this point in the history
… platforms. Added an unfold() call to make it platform independant.

[git-p4: depot-paths = "//open/mondrian-release/3.2/": change = 13802]
  • Loading branch information
lucboudreau committed Aug 11, 2010
1 parent d93e827 commit 6051afc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion testsrc/main/mondrian/test/ParentChildHierarchyTest.java
Expand Up @@ -1184,7 +1184,10 @@ public void testClosureVsNoClosure() {
+ "from [HR4C]";
expected =
TestContext.toString(testClosureContext.executeQuery(mdx));
assertTrue(expected, expected.contains("Row #0: 21,252\n"));
assertTrue(
expected,
TestContext.unfold(expected)
.toString().contains("Row #0: 21,252\n"));
// Need to unfold because 'expect' has platform-specific line-endings,
// yet assertQueryReturns assumes that it contains linefeeds.
testNoClosureContext.assertQueryReturns(
Expand Down

0 comments on commit 6051afc

Please sign in to comment.