[Chapel Merge] Add a test of every operator as a method

Branch: refs/heads/master
Revision: c7e1719
Author: lydia-duncan
Log Message:

Merge pull request #17564 from lydia-duncan/operatorMethodTests

Add a test of every operator as a method
[new tests, not reviewed]

All tests behaved as expected without requiring compiler modification.

Covers:

  • = (assignment)
  • == (equality)
  • != (inequality)
  • > (greater than)
  • >= (greater than or equal to)
  • < (less than)
  • <= (less than or equal to)
  • <=> (swap)
  • & (and)
  • | (or)
  • ^ (xor)
  • + (addition when binary, positive identity when unary)
  • - (subtraction when binary, negation when unary)
  • * (multiplication)
  • / (division)
  • ~ (negation)
  • ** (exponentiation)
  • % (mod)
  • << (shift left)
  • >> (shift right)
  • ! (not)
  • <~> (the io operator)
  • += (addition and assignment)
  • -= (subtraction and assignment)
  • *= (multiplication and assignment)
  • /= (division and assignment)
  • **= (exponentiation and assignment)
  • %= (mod and assignment)
  • &= ("and" and assignment)
  • |= (or and assignment)
  • ^= (xor and assignment)
  • <<= (left shift and assignment)
  • >>= (right shift and assignment)
  • # (count)
  • by
  • align
  • : (cast)

Resolves Cray/chapel-private#1849

Passed a fresh checkout of the tests

Modified Files:
A test/functions/operatorOverloads/operatorMethods/allOps/addition.chpl

A test/functions/operatorOverloads/operatorMethods/allOps/addition.good
A test/functions/operatorOverloads/operatorMethods/allOps/alignOp.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/alignOp.good
A test/functions/operatorOverloads/operatorMethods/allOps/and.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/and.good
A test/functions/operatorOverloads/operatorMethods/allOps/andEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/andEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/assignment.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/assignment.good
A test/functions/operatorOverloads/operatorMethods/allOps/byOp.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/byOp.good
A test/functions/operatorOverloads/operatorMethods/allOps/castOp.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/castOp.good
A test/functions/operatorOverloads/operatorMethods/allOps/countOp.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/countOp.good
A test/functions/operatorOverloads/operatorMethods/allOps/divideEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/divideEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/division.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/division.good
A test/functions/operatorOverloads/operatorMethods/allOps/equality.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/equality.good
A test/functions/operatorOverloads/operatorMethods/allOps/exponentEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/exponentEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/exponentiation.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/exponentiation.good
A test/functions/operatorOverloads/operatorMethods/allOps/greaterThan.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/greaterThan.good
A test/functions/operatorOverloads/operatorMethods/allOps/greaterThanOrEqual.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/greaterThanOrEqual.good
A test/functions/operatorOverloads/operatorMethods/allOps/inequality.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/inequality.good
A test/functions/operatorOverloads/operatorMethods/allOps/ioOperator.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/ioOperator.good
A test/functions/operatorOverloads/operatorMethods/allOps/lessThan.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/lessThan.good
A test/functions/operatorOverloads/operatorMethods/allOps/lessThanOrEqual.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/lessThanOrEqual.good
A test/functions/operatorOverloads/operatorMethods/allOps/minusEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/minusEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/mod.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/mod.good
A test/functions/operatorOverloads/operatorMethods/allOps/modEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/modEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/multiplication.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/multiplication.good
A test/functions/operatorOverloads/operatorMethods/allOps/negation.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/negation.good
A test/functions/operatorOverloads/operatorMethods/allOps/not.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/not.good
A test/functions/operatorOverloads/operatorMethods/allOps/or.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/or.good
A test/functions/operatorOverloads/operatorMethods/allOps/orEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/orEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/plusEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/plusEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/positiveIdentity.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/positiveIdentity.good
A test/functions/operatorOverloads/operatorMethods/allOps/shiftLeft.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/shiftLeft.good
A test/functions/operatorOverloads/operatorMethods/allOps/shiftLeftEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/shiftLeftEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/shiftRight.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/shiftRight.good
A test/functions/operatorOverloads/operatorMethods/allOps/shiftRightEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/shiftRightEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/subtraction.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/subtraction.good
A test/functions/operatorOverloads/operatorMethods/allOps/swapOp.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/swapOp.good
A test/functions/operatorOverloads/operatorMethods/allOps/timesEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/timesEquals.good
A test/functions/operatorOverloads/operatorMethods/allOps/unaryNot.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/unaryNot.good
A test/functions/operatorOverloads/operatorMethods/allOps/xor.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/xor.good
A test/functions/operatorOverloads/operatorMethods/allOps/xorEquals.chpl
A test/functions/operatorOverloads/operatorMethods/allOps/xorEquals.good

Compare: https://github.com/chapel-lang/chapel/compare/53e1fb02bd01...c7e171985d78