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

Assertion for arrays and associative arrays #72

Open
angoca opened this issue Oct 2, 2014 · 1 comment
Open

Assertion for arrays and associative arrays #72

angoca opened this issue Oct 2, 2014 · 1 comment

Comments

@angoca
Copy link
Owner

angoca commented Oct 2, 2014

There should be these assertions to compare two arrays and two associative arrays.

@angoca angoca added this to the Version 2 milestone Oct 2, 2014
@angoca angoca modified the milestones: Version 2, Version 2.1 Sep 1, 2018
@angoca
Copy link
Owner Author

angoca commented May 27, 2022

create type boolean_array as boolean array[] @angoca

create or replace assert_equal_boolean_array (
in actual_boolean_array boolean_array,
in expected_boolean_array boolean_array
)
set max_expected = cardinality(expected_boolean_array);
set max_actual = cardinality(actual_boolean_array);

if (actual_boolean_array[i] <> expected_boolean_array[i]) then

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

No branches or pull requests

1 participant