Skip to content

Commit

Permalink
Add simple test that verifies relations between field type classes
Browse files Browse the repository at this point in the history
  • Loading branch information
przemekwitek committed Dec 9, 2019
1 parent f0ca4b6 commit 6a338fa
Showing 1 changed file with 21 additions and 0 deletions.
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());
}
}

0 comments on commit 6a338fa

Please sign in to comment.