Open PootieT opened 1 year ago
Does this cause errors?
Yeah, I tried removing the extra parenthesis and the same program starts passing tests.
Which scala version are you using? I compiled it with scala 2.13.11 and it passed tests. Here is the code I used:
import scala.math._
import scala.collection.mutable._
object Problem {
def evenOddCount(num : Long) : Tuple2[Long, Long] = {
return (0l, 1l); // Some program here
}
def main(args: Array[String]) = {
assert(evenOddCount((7l)).equals(((0l, 1l))));
}
}
@PootieT :)
Example:
HumanEval_155_even_odd_count
There is an extra level of parenthesis around theses expected tuple values that doesn't match up with what the programs output. At first I thought this is mistranslated for all programs with output type of
Tuple2
, but seems like it only applies to this one program..