unit test for backward compatibility for cross function
This commit is contained in:
parent
4950d29074
commit
64ab5a4409
@ -160,18 +160,18 @@ public class CrossFunctionTests extends RefineTest {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* rest of cells shows "Error: cross expects a string, a project name to join with, and a column name in that project"
|
* rest of cells shows "Error: cross expects a string or cell, a project name to join with, and a column name in that project"
|
||||||
*/
|
*/
|
||||||
@Test
|
@Test
|
||||||
public void crossFunctionNonLiteralValue() throws Exception {
|
public void crossFunctionNonLiteralValue() throws Exception {
|
||||||
Assert.assertEquals(((EvalError) invoke("cross", 1, "My Address Book", "friend")).message,
|
Assert.assertEquals(((EvalError) invoke("cross", 1, "My Address Book", "friend")).message,
|
||||||
"cross expects a string, a project name to join with, and a column name in that project");
|
"cross expects a string or cell, a project name to join with, and a column name in that project");
|
||||||
|
|
||||||
Assert.assertEquals(((EvalError) invoke("cross", null, "My Address Book", "friend")).message,
|
Assert.assertEquals(((EvalError) invoke("cross", null, "My Address Book", "friend")).message,
|
||||||
"cross expects a string, a project name to join with, and a column name in that project");
|
"cross expects a string or cell, a project name to join with, and a column name in that project");
|
||||||
|
|
||||||
Assert.assertEquals(((EvalError) invoke("cross", Calendar.getInstance(), "My Address Book", "friend")).message,
|
Assert.assertEquals(((EvalError) invoke("cross", Calendar.getInstance(), "My Address Book", "friend")).message,
|
||||||
"cross expects a string, a project name to join with, and a column name in that project");
|
"cross expects a string or cell, a project name to join with, and a column name in that project");
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user