Skip to content

rename the parameters to eq_test in test/rql_test/drivers/driver.rb #3150

Closed

Description

@larkost

The parameters to eq_test in test/rql_test/drivers/driver.rb are confusing: def eq_test(one, two). You actually have to read one of the callers to figure out that two is the expected value and one is the actual value. This should be cleaned up to something more like: def eq_test(expected_value, actual_value) to make reading it easier (and the accompanying lower bug count). And yes... I am purposely switching the order, since that is what we do elsewhere.

Activity

  1. added this to the tests milestone on Oct 8, 2014
  2. added a commit that references this issue on Oct 8, 2014
  3. larkost commented on Oct 9, 2014

    @larkost
    CollaboratorAuthor

    This is up for review with CR 2189, on branch larkost/3150-eq_test-parameter-order

  4. added 2 commits that reference this issue on Oct 16, 2014
  5. larkost commented on Oct 16, 2014

    @larkost
    CollaboratorAuthor

    This has been merged into next with revision 05c639c.

  6. modified the milestones: tests, 1.16 on Jan 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions