Skip to content

Refactor: Align creation APIs and close resolved issues#35

Merged
jordanmontt merged 3 commits intopharo-containers:masterfrom
HossamSaberr:api-alignment
Mar 23, 2026
Merged

Refactor: Align creation APIs and close resolved issues#35
jordanmontt merged 3 commits intopharo-containers:masterfrom
HossamSaberr:api-alignment

Conversation

@HossamSaberr
Copy link
Contributor

This PR aligns the instance creation API between the two implementations and cleans up the issue tracker.

  • Added CTNewArray2D class >> fromRows:pad: so both implementations now share the exact same creation methods.
  • Added test in CTNewArray2DTest.

Note to maintainers: While reviewing the codebase, I noticed that several open issues have actually already been resolved in the code but were left open. I have linked them below so this PR can cleanly close them out!

  • printOn: is already properly implemented in both classes.
  • No matrix math methods (like eigenvalue) remain in the codebase.
  • PR 15 was already merged for the Pharo fixes.

All Tests Green

image

CTNewArray2DTest >> testFromRowsPad [
| array |
array := self arrayClass fromRows: #( #(1 2) #(3 4 5) #(6) ) pad: 0.

Copy link
Member

@jordanmontt jordanmontt Mar 20, 2026

Choose a reason for hiding this comment

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

We should test more cases with different paddings

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@HossamSaberr
Copy link
Contributor Author

Done , all tests are green

let me know if we need any adjustment

@jordanmontt jordanmontt merged commit ce2e0aa into pharo-containers:master Mar 23, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants