From dcabbf90df9a0adb1721ce50bc21ee3c26ec66eb Mon Sep 17 00:00:00 2001 From: Lex Spoon Date: Tue, 29 May 2007 17:16:21 +0000 Subject: --- test/files/run/sort.check | 6 ++++++ test/files/run/sort.scala | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 test/files/run/sort.check create mode 100644 test/files/run/sort.scala (limited to 'test') diff --git a/test/files/run/sort.check b/test/files/run/sort.check new file mode 100644 index 0000000000..fd2c2dbf21 --- /dev/null +++ b/test/files/run/sort.check @@ -0,0 +1,6 @@ +1000000 +List(1, 2, 3, 5, 10) +List(10, 5, 3, 2, 1) +List(10) +List(9, 10) +List() diff --git a/test/files/run/sort.scala b/test/files/run/sort.scala new file mode 100644 index 0000000000..7112cd8c74 --- /dev/null +++ b/test/files/run/sort.scala @@ -0,0 +1,9 @@ +object Test extends Application { + println((1 to 1000000).toList.sort(_<_).length) + println(List(1, 5, 10, 3, 2).toList.sort(_<_)) + println(List(1, 5, 10, 3, 2).toList.sort(_>_)) + println(List(10).toList.sort(_<_)) + println(List(10,9).toList.sort(_<_)) + println(List[Int]().toList.sort(_<_)) +} + -- cgit v1.2.3