blob: bab4cc10d5f080f00528c63a4fc6b7c42941fc5a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.searchlib.expression;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertSame;
/**
* @author Simon Thoresen Hult
*/
public class ZCurveFunctionTestCase {
@Test
public void requireThatAccessorsWork() {
ExpressionNode arg = new AttributeNode("foo");
ZCurveFunctionNode node = new ZCurveFunctionNode(arg, ZCurveFunctionNode.Dimension.X);
assertSame(arg, node.getArg());
assertEquals(ZCurveFunctionNode.Dimension.X, node.getDimension());
node = new ZCurveFunctionNode(arg, ZCurveFunctionNode.Dimension.Y);
assertSame(arg, node.getArg());
assertEquals(ZCurveFunctionNode.Dimension.Y, node.getDimension());
}
}
|