Skip to content

feat: port test_conversions to CTS#38

Open
bavulapati wants to merge 6 commits intonodejs:mainfrom
bavulapati:feat/port-test-conversions
Open

feat: port test_conversions to CTS#38
bavulapati wants to merge 6 commits intonodejs:mainfrom
bavulapati:feat/port-test-conversions

Conversation

@bavulapati
Copy link
Copy Markdown
Contributor

Ports test_conversions from the Node.js test suite to the CTS.

@bavulapati
Copy link
Copy Markdown
Contributor Author

Most of the files are identical to the original source.

@kraenhansen
Copy link
Copy Markdown
Contributor

Reviewed: C files are verbatim copies of upstream, CMakeLists.txt correctly lists both sources, all upstream test cases preserved, all assert methods used are available in CTS. "use strict" tracked in #41.

@bavulapati
Copy link
Copy Markdown
Contributor Author

@kraenhansen Do you have any opinion on "use strict"?

@kraenhansen
Copy link
Copy Markdown
Contributor

@bavulapati I think it's redundant but also in alignment with what I've already merged. Let's keep it as-is and then update in bulk later 👍

| `test_array` | Ported ✅ | Easy |
| `test_bigint` | Ported ✅ | Easy |
| `test_cannot_run_js` | Not ported | Medium |
| `test_conversions` | Ported ✅ | Medium |
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Line 54 should be updated instead.

@bavulapati bavulapati force-pushed the feat/port-test-conversions branch from a510746 to 2da801e Compare April 9, 2026 03:35
bavulapati and others added 6 commits April 9, 2026 09:58
Ports
[test_conversions](https://github.com/nodejs/node/tree/main/test/js-native-api/test_conversions)
from the Node.js test suite to the CTS.

Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Exercises napi_define_class with method, data value, accessor, and
static property descriptors. Includes null-argument tests for
napi_define_class via test_null.c/test_null.js.

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
Signed-off-by: Balakrishna Avulapati <ba@bavulapati.com>
@bavulapati bavulapati force-pushed the feat/port-test-conversions branch from c3ece25 to 9ef3fee Compare April 9, 2026 04:30
@bavulapati bavulapati requested a review from legendecas April 9, 2026 04:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Need Triage

Development

Successfully merging this pull request may close these issues.

3 participants