Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 3 unit tests for packed arrays #1606

Closed
wants to merge 17 commits into from

Conversation

Ivorforce
Copy link
Contributor

This is rather a bug report than a pull request (though the unit tests don't hurt if they stay).
The unit tests (should) currently have the following status:

  • test_typed_array_of_packed: succeeds, it doesn't use constructors
  • test_append_to_packed: crashes
  • test_copy_packed_implicit: returns incorrect [PackedInt32Array([1]), PackedInt32Array([2])]

I don't know much about godot-cpp and hope this is enough repro for someone to conjure a fix.

@Ivorforce Ivorforce requested a review from a team as a code owner September 25, 2024 13:30
@Ivorforce Ivorforce marked this pull request as draft September 25, 2024 13:43
@Ivorforce
Copy link
Contributor Author

Hmmm... odd that the tests succeed here, because the following code definitely crashes my client:

    PackedByteArray x;
    x.append(2);
    PackedByteArray b = PackedByteArray((PackedByteArray&) a);

That's on 1cce4d1.

AThousandShips and others added 17 commits September 25, 2024 16:56
This should make all symbols that are not marked otherwise have hidden
visibility. There still may be exposed symbols if marked with respective
attributes.
changed cache type for api file and api dir to FILEPATH and PATH respectively.
Minor whitespace.
docstring parity
Required since Godot 4.3, which is also the first Godot version with
wide WASM gdnative support (previous versions were Chrome-only, and very
brittle).
and also the default cmake build directory when building in clion cmake-build-*
@Ivorforce Ivorforce force-pushed the test-packed-manipulation branch from d5e7d7c to 909ea89 Compare September 25, 2024 15:03
@Ivorforce Ivorforce changed the base branch from master to 4.3 September 25, 2024 15:04
@Ivorforce Ivorforce marked this pull request as ready for review September 25, 2024 15:06
@Ivorforce
Copy link
Contributor Author

Eh... Something went wrong. I'll just make another PR.

@Ivorforce Ivorforce closed this Sep 25, 2024
@Ivorforce Ivorforce deleted the test-packed-manipulation branch September 25, 2024 15:08
@Ivorforce Ivorforce restored the test-packed-manipulation branch September 25, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants