-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
GD-546: Allow to use the basic assert function un-typed #546
Comments
MikeSchulze
changed the title
Allow to use the basic assert function un-typed
GD-546: Allow to use the basic assert function un-typed
Jul 22, 2024
MikeSchulze
added a commit
that referenced
this issue
Jul 22, 2024
# Why see #546 # What - do allow all Variant types for `is_equal` and `is_not_equal` when using the untyped `assert_that` - changed the fixed typed `is_equal` and `is_not_equal` to accept Variant type
MikeSchulze
added a commit
that referenced
this issue
Jul 22, 2024
# Why see #546 # What - do allow all Variant types for `is_equal` and `is_not_equal` when using the untyped `assert_that` - changed the fixed typed `is_equal` and `is_not_equal` to accept Variant type
MikeSchulze
added a commit
that referenced
this issue
Jul 22, 2024
# Why see #546 # What - do allow all Variant types for `is_equal` and `is_not_equal` when using the untyped `assert_that` - changed the fixed typed `is_equal` and `is_not_equal` to accept Variant type
MikeSchulze
added a commit
that referenced
this issue
Jul 22, 2024
# Why see #546 # What - do allow all Variant types for `is_equal` and `is_not_equal` when using the un-typed `assert_that` - changed the fixed typed `is_equal` and `is_not_equal` to accept Variant type
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Actual, we run into a compile error when try to test a Variant vs typed value.
assert_that(3).is_equal("3")
The assertions are type save and do not allow testing an un-typed function result to an expected typed result.
It is legate to have a function with a
Variant
return type, soassert_that
should not test for type safetyDescribe the solution you'd like
Improve the assertions to allow using un-typed current values vs expected typed values.
is_null
is_not_null
is_equal
is_not_equal
Describe alternatives you've considered
n/a
The text was updated successfully, but these errors were encountered: