Skip to content

Add OOC cbind#2437

Open
jessicapriebe wants to merge 4 commits intoapache:mainfrom
jessicapriebe:ooc/operators/cbind
Open

Add OOC cbind#2437
jessicapriebe wants to merge 4 commits intoapache:mainfrom
jessicapriebe:ooc/operators/cbind

Conversation

@jessicapriebe
Copy link
Contributor

This adds OOC cbind.

Comment on lines +54 to +91
@Test
public void testCBindAppendBlock() { runCBindTest(1000, 1000, 1000, 1000);}

@Test
public void testCBindAppendBlockTwoLeftBlocks() {runCBindTest(1000, 2000, 1000, 1000);}

@Test
public void testCBindPartialFillSingleRightBlock() { runCBindTest(1000, 1100, 1000, 100);}

@Test
public void testCBindTotalFillSingleBlockEachSide() { runCBindTest(1000, 500, 1000, 500);}

@Test
public void testCBindTotalFillTwoRightBlocks() { runCBindTest(1000, 3500, 1000, 1500);}

@Test
public void testCBindPartialFillMultipleBlocksEachSide() { runCBindTest(1000, 3100, 1000, 3200);}

@Test
public void testCBindTotalFillMultipleBlocksEachSide() { runCBindTest(1000, 3500, 1000, 3500);}

@Test
public void testCBindOverflowSingleRightBlock() { runCBindTest(1000, 1600, 1000, 600);}

@Test
public void testCBindOverflowMultipleRightBlocks() { runCBindTest(1000, 1600, 1000, 2600);}

@Test
public void testCBindOverflowTotalFilledSingleRightBlock() {runCBindTest(1000, 1100, 1000, 1000);}

@Test
public void testCBindOverflowTotalFilledTwoRightBlocks() {runCBindTest(1000, 1100, 1000, 2000);}

@Test
public void testCBindMultipleRows() { runCBindTest(2500, 1500, 2500, 1500);}

@Test
public void testCBind() {runCBindTest(2300, 1655, 2300, 2542);}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. I would suggest you change it to a parameterised test case to reduce line count.
  2. you are missing tests for other block sizes than default.
  3. You are missing negative cases where the r1 != r2, r1 == 0 && r2 == 0, and such.

Copy link
Contributor

@janniklinde janniklinde Mar 4, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These edge cases are indeed good to have. Currently, OOC largely misses these tests for other operators as well (I will work on it to increase coverage). As I am aware of some bugs for different block sizes, I suggest leaving the block size constant for now (but keep the block size parameter like you did in the last commit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

3 participants