Skip to content

Commit

Permalink
Add failing test from jtablesaw#1227
Browse files Browse the repository at this point in the history
  • Loading branch information
ccleva committed Dec 14, 2024
1 parent 5b8114e commit 0834d93
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions core/src/test/java/tech/tablesaw/api/FixIsInCollectionTest.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package tech.tablesaw.api;

import static org.junit.jupiter.api.Assertions.*;

import java.util.Arrays;

import org.junit.jupiter.api.Test;

class FixIsInCollectionTest {

@Test
void testIsInIntColumn() {
IntColumn column = IntColumn.create("c", 1, 2);
assertEquals(1, column.isIn(1).size()); // passes
assertEquals(1, column.isIn(Arrays.asList(1d)).size()); // passes
assertEquals(1, column.isIn(Arrays.asList(1)).size()); // fails
}
}

0 comments on commit 0834d93

Please sign in to comment.