summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-12-21 18:47:14 +0000
committerAleksandar Pokopec <aleksandar.prokopec@epfl.ch>2010-12-21 18:47:14 +0000
commitc2c54e12d41951ad74b927f6332e5e766ed19dc9 (patch)
tree4502bcbacf6014967a71c49e7277748e2fcb8e5a /test
parent8aff48b504dc520a58d113cc95f6c5997970da7c (diff)
downloadscala-c2c54e12d41951ad74b927f6332e5e766ed19dc9.tar.gz
scala-c2c54e12d41951ad74b927f6332e5e766ed19dc9.tar.bz2
scala-c2c54e12d41951ad74b927f6332e5e766ed19dc9.zip
Disabled a test.
Diffstat (limited to 'test')
-rw-r--r--test/files/run/coder2/Coder2.scala52
1 files changed, 26 insertions, 26 deletions
diff --git a/test/files/run/coder2/Coder2.scala b/test/files/run/coder2/Coder2.scala
index 255fcf0b4e..a83044981b 100644
--- a/test/files/run/coder2/Coder2.scala
+++ b/test/files/run/coder2/Coder2.scala
@@ -168,32 +168,32 @@ object Test {
/* */
def main(args : Array[String]) {
- for (i <- 0 until 10) {
- val seqcoder = new SeqCoder(Dictionary.wordlist)
- val st = seqcoder.translate(code)
- //println("Translation check: " + st.size)
-
- val parcoder = new ParCoder(Dictionary.wordlist)
- val pt = parcoder.translate(code)
- //println("Translation check: " + pt.size)
-
- // val st = sts.toList.sorted
- // val pt = pts.toList.sorted
- if (st.size != pt.size) {
- // val zipped = st.zip(pt)
- // val ind = zipped.indexWhere { case (a, b) => a != b }
- // val sliced = zipped.slice(ind - 10, ind + 10)
- // println(sliced.map(t => t._1 + "\n" + t._2 + "\n--------").mkString("\n"))
- println(i + ") seq vs par: " + st.size + " vs " + pt.size)
- }
- if (st != pt) {
- val zipped = (st.toList.sorted zip pt.toList.sorted);
- val diffp = zipped indexWhere { case (x, y) => x != y }
- println(zipped/*.slice(diffp - 10, diffp + 10)*/ mkString ("\n"))
- println((st.toList.sorted zip pt.toList.sorted) map { case (x, y) => (x == y) } reduceLeft(_ && _))
- }
- assert(st == pt)
- }
+ // for (i <- 0 until 10) {
+ // val seqcoder = new SeqCoder(Dictionary.wordlist)
+ // val st = seqcoder.translate(code)
+ // //println("Translation check: " + st.size)
+
+ // val parcoder = new ParCoder(Dictionary.wordlist)
+ // val pt = parcoder.translate(code)
+ // //println("Translation check: " + pt.size)
+
+ // // val st = sts.toList.sorted
+ // // val pt = pts.toList.sorted
+ // if (st.size != pt.size) {
+ // // val zipped = st.zip(pt)
+ // // val ind = zipped.indexWhere { case (a, b) => a != b }
+ // // val sliced = zipped.slice(ind - 10, ind + 10)
+ // // println(sliced.map(t => t._1 + "\n" + t._2 + "\n--------").mkString("\n"))
+ // println(i + ") seq vs par: " + st.size + " vs " + pt.size)
+ // }
+ // if (st != pt) {
+ // val zipped = (st.toList.sorted zip pt.toList.sorted);
+ // val diffp = zipped indexWhere { case (x, y) => x != y }
+ // println(zipped/*.slice(diffp - 10, diffp + 10)*/ mkString ("\n"))
+ // println((st.toList.sorted zip pt.toList.sorted) map { case (x, y) => (x == y) } reduceLeft(_ && _))
+ // }
+ // assert(st == pt)
+ // }
}
}