Skip to content

Enlarge utbot-samples with a scenario requiring to compare nullable objects with deepEquals #696

Description

@EgorkaKulikov

Description

Current implementation of deepEquals doesn't support comparing of nullable reference types.

This is not a problem for non-parametrized tests because for each execution we can determine if the value is null or not and assert it as follows:
assertNull(actual.RefValue) for the nullable case
assertEquals(expected.RefValue, actual.RefValue) for the non-nullable case

For parametrized tests we require something like:
assertEquals(expected.RefValue : Any?, actual.RefValue: Any?)

It is not still implemented. We need to add this case to utbot-sampes. This test is going to pass for non-parametrized tests and fail for parametrized ones.

Activity

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

Metadata

Metadata

Assignees

Labels

comp-codegenIssue is related to code generatorctg-enhancementNew feature, improvement or change request

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions