Skip to content

refactor: merge testing round and comparing classes into the main backend testing class #2564

@datapythonista

Description

@datapythonista

The methods of the classes RoundAwayFromZero, RoundHalfToEven and UnorderedComparator can be merged into the Backend class, and then implement an attribute to select which method to use, for example:

class Spark(Backend):
    round_method = 'half_to_even'

This would make things simpler, than the current mixin approach.

Metadata

Metadata

Labels

refactorIssues or PRs related to refactoring the codebasetestsIssues or PRs related to tests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions