ModuleName: MathLogicMod
Description: Tests for the basic usage of the mod operation
DefsAndTests:
- TestType: JavaQuery
  TestFile: math_logic/mod.yaml
  LineNum: 6
  Original: r.expr(10) % 3
  Java: r.expr(10L).mod(3L)
  ExpectedOriginal: 1
  ExpectedType: Long
  ExpectedJava: 1L
  RunOpts: []
- TestType: JavaQuery
  TestFile: math_logic/mod.yaml
  LineNum: 7
  Original: 10 % r.expr(3)
  Java: r.mod(10L, r.expr(3L))
  ExpectedOriginal: 1
  ExpectedType: Long
  ExpectedJava: 1L
  RunOpts: []
- TestType: JavaQuery
  TestFile: math_logic/mod.yaml
  LineNum: 8
  Original: r.expr(10).mod(3)
  Java: r.expr(10L).mod(3L)
  ExpectedOriginal: 1
  ExpectedType: Long
  ExpectedJava: 1L
  RunOpts: []
- TestType: JavaQuery
  TestFile: math_logic/mod.yaml
  LineNum: 16
  Original: r.expr(-10) % -3
  Java: r.expr(-10L).mod(-3L)
  ExpectedOriginal: -1
  ExpectedType: Long
  ExpectedJava: -1L
  RunOpts: []
- TestType: JavaQuery
  TestFile: math_logic/mod.yaml
  LineNum: 22
  Original: r.expr(4) % 'a'
  Java: r.expr(4L).mod("a")
  ExpectedOriginal: err('ReqlQueryLogicError', 'Expected type NUMBER but found STRING.', [ 1])
  ExpectedType: Err
  ExpectedJava: err("ReqlQueryLogicError", "Expected type NUMBER but found STRING.",  r.array(1L))
  RunOpts: []
- TestType: JavaQuery
  TestFile: math_logic/mod.yaml
  LineNum: 27
  Original: r.expr('a') % 1
  Java: r.expr("a").mod(1L)
  ExpectedOriginal: err('ReqlQueryLogicError', 'Expected type NUMBER but found STRING.', [ 0])
  ExpectedType: Err
  ExpectedJava: err("ReqlQueryLogicError", "Expected type NUMBER but found STRING.",  r.array(0L))
  RunOpts: []
- TestType: JavaQuery
  TestFile: math_logic/mod.yaml
  LineNum: 32
  Original: r.expr('a') % 'b'
  Java: r.expr("a").mod("b")
  ExpectedOriginal: err('ReqlQueryLogicError', 'Expected type NUMBER but found STRING.', [ 0])
  ExpectedType: Err
  ExpectedJava: err("ReqlQueryLogicError", "Expected type NUMBER but found STRING.",  r.array(0L))
  RunOpts: []
