Skip to content

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

Closed
@EgorkaKulikov

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.

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions