-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add simple test that verifies relations between field type classes
- Loading branch information
1 parent
f0ca4b6
commit 6a338fa
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
...gin/core/src/test/java/org/elasticsearch/xpack/core/ml/dataframe/analyses/TypesTests.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
package org.elasticsearch.xpack.core.ml.dataframe.analyses; | ||
|
||
import org.elasticsearch.common.util.set.Sets; | ||
import org.elasticsearch.test.ESTestCase; | ||
|
||
import static org.hamcrest.Matchers.empty; | ||
|
||
public class TypesTests extends ESTestCase { | ||
|
||
public void testTypes() { | ||
assertThat(Sets.intersection(Types.bool(), Types.categorical()), empty()); | ||
assertThat(Sets.intersection(Types.categorical(), Types.numerical()), empty()); | ||
assertThat(Sets.intersection(Types.numerical(), Types.bool()), empty()); | ||
assertThat(Sets.difference(Types.discreteNumerical(), Types.numerical()), empty()); | ||
} | ||
} |