blob: b2443082ab1a1d88e12d19928785d970475fe626 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.yahoo.searchlib.rankingexpression.integration.ml;
import com.yahoo.searchlib.rankingexpression.integration.ml.importer.OrderedTensorType;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* @author bratseth
*/
public class OrderedTensorTypeTestCase {
@Test
public void testToFromSpec() {
String spec = "tensor(b[],c{},a[3])";
OrderedTensorType type = OrderedTensorType.fromSpec(spec);
assertEquals(spec, type.toString());
assertEquals("tensor(a[3],b[],c{})", type.type().toString());
}
}
|