Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Removed `ut_expectation` sub-types. #494
Conversation
Moved all shortcuts directly to `ut_expectation`. The original design was over-complicated and made it hard to write new code and understand existing code. With that change, one behavior related to the shortcuts (`to_equal` etc.) will change. Currently: - line `ut.expect(1).to_be_empty();` will give compilation error: `PLS-00302: component 'TO_BE_EMPTY' must be declared` - line `ut.expect(1).to_(be_empty());` will compile successfully and on execution expectation fails with message: `The matcher 'to_be_empty' cannot be used with data type (number).` After simplification, both will compile and both will make expectation fail. This change brings simplification to the code-base and improves consistency of the framework. As a side note, The failure message from the framework is much more readable and easy to understand than the compilation error from Oracle.
# Conflicts: # source/uninstall.sql
Moved all shortcuts directly to
ut_expectation.The original design was over-complicated and made it hard to write new code and understand existing code.
With that change, one behavior related to the shortcuts (
to_equaletc.) will change.Currently:
ut.expect(1).to_be_empty();will give compilation error:PLS-00302: component 'TO_BE_EMPTY' must be declaredut.expect(1).to_(be_empty());will compile successfully and on execution expectation fails with message:The matcher 'to_be_empty' cannot be used with data type (number).After simplification, both will compile and both will make expectation fail.
This change brings simplification to the code-base and improves consistency of the framework.
As a side note, the failure message from the framework is much more readable and easy to understand than the compilation error from Oracle.