tests: remove broken shootout_pidigits
authorJean Privat <jean@pryen.org>
Thu, 6 Aug 2009 15:27:43 +0000 (11:27 -0400)
committerJean Privat <jean@pryen.org>
Thu, 6 Aug 2009 15:28:51 +0000 (11:28 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

tests/sav/shootout_pidigits.fail [deleted file]
tests/sav/shootout_pidigits.sav [deleted file]
tests/sav/shootout_pidigits_args1.sav [deleted file]
tests/shootout_pidigits.args [deleted file]
tests/shootout_pidigits.nit [deleted file]

diff --git a/tests/sav/shootout_pidigits.fail b/tests/sav/shootout_pidigits.fail
deleted file mode 100644 (file)
index 6225592..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-3140000000     :10
-0000000000     :20
-0000000000     :30
-1100000000     :40
-0000000000     :50
-0000000000     :60
-1100000000     :70
-0000000000     :80
-0000000000     :90
-1100000000     :100
-0000000000     :110
-0000000000     :120
-1100000000     :130
-0000000000     :140
-0000000000     :150
-1100000000     :160
-0000000000     :170
-0000000000     :180
-1100000000     :190
-0000000000     :200
-0000000000     :210
-1100000000     :220
-0000000000     :230
-0000000000     :240
-1100000000     :250
-0000000000     :260
-0000000000     :270
-1100000000     :280
-0000000000     :290
-0000000000     :300
-1100000000     :310
-0000000000     :320
-0000000000     :330
-1100000000     :340
-0000000000     :350
-0000000000     :360
-1100000000     :370
-0000000000     :380
-0000000000     :390
-1100000000     :400
-0000000000     :410
-0000000000     :420
-1100000000     :430
-0000000000     :440
-0000000000     :450
-1100000000     :460
-0000000000     :470
-0000000000     :480
-1100000000     :490
-0000000000     :500
-0000000000     :510
-1100000000     :520
-0000000000     :530
-0000000000     :540
-1100000000     :550
-0000000000     :560
-0000000000     :570
-1100000000     :580
-0000000000     :590
-0000000000     :600
-1100000000     :610
-0000000000     :620
-0000000000     :630
-1100000000     :640
-0000000000     :650
-0000000000     :660
-1100000000     :670
-0000000000     :680
-0000000000     :690
-1100000000     :700
-0000000000     :710
-0000000000     :720
-1100000000     :730
-0000000000     :740
-0000000000     :750
-1100000000     :760
-0000000000     :770
-0000000000     :780
-1100000000     :790
-0000000000     :800
-0000000000     :810
-1100000000     :820
-0000000000     :830
-0000000000     :840
-1100000000     :850
-0000000000     :860
-0000000000     :870
-1100000000     :880
-0000000000     :890
-0000000000     :900
-1100000000     :910
-0000000000     :920
-0000000000     :930
-1100000000     :940
-0000000000     :950
-0000000000     :960
-1100000000     :970
-0000000000     :980
-0000000000     :990
-1100000000     :1000
diff --git a/tests/sav/shootout_pidigits.sav b/tests/sav/shootout_pidigits.sav
deleted file mode 100644 (file)
index 7d94ead..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-Assert 'not_empty'  failed in abstract_collection::IndexedCollectionRead::(abstract_collection::Collection::first) (../lib/standard/abstract_collection.nit:292)
-,---- Stack trace -- - -  -
-| abstract_collection::IndexedCollectionRead::(abstract_collection::Collection::first) (../lib/standard/abstract_collection.nit:288)
-| shootout_pidigits::Sys::(kernel::Sys::main) (./shootout_pidigits.nit:138)
-`------------------- - -  -
diff --git a/tests/sav/shootout_pidigits_args1.sav b/tests/sav/shootout_pidigits_args1.sav
deleted file mode 100644 (file)
index 6225592..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-3140000000     :10
-0000000000     :20
-0000000000     :30
-1100000000     :40
-0000000000     :50
-0000000000     :60
-1100000000     :70
-0000000000     :80
-0000000000     :90
-1100000000     :100
-0000000000     :110
-0000000000     :120
-1100000000     :130
-0000000000     :140
-0000000000     :150
-1100000000     :160
-0000000000     :170
-0000000000     :180
-1100000000     :190
-0000000000     :200
-0000000000     :210
-1100000000     :220
-0000000000     :230
-0000000000     :240
-1100000000     :250
-0000000000     :260
-0000000000     :270
-1100000000     :280
-0000000000     :290
-0000000000     :300
-1100000000     :310
-0000000000     :320
-0000000000     :330
-1100000000     :340
-0000000000     :350
-0000000000     :360
-1100000000     :370
-0000000000     :380
-0000000000     :390
-1100000000     :400
-0000000000     :410
-0000000000     :420
-1100000000     :430
-0000000000     :440
-0000000000     :450
-1100000000     :460
-0000000000     :470
-0000000000     :480
-1100000000     :490
-0000000000     :500
-0000000000     :510
-1100000000     :520
-0000000000     :530
-0000000000     :540
-1100000000     :550
-0000000000     :560
-0000000000     :570
-1100000000     :580
-0000000000     :590
-0000000000     :600
-1100000000     :610
-0000000000     :620
-0000000000     :630
-1100000000     :640
-0000000000     :650
-0000000000     :660
-1100000000     :670
-0000000000     :680
-0000000000     :690
-1100000000     :700
-0000000000     :710
-0000000000     :720
-1100000000     :730
-0000000000     :740
-0000000000     :750
-1100000000     :760
-0000000000     :770
-0000000000     :780
-1100000000     :790
-0000000000     :800
-0000000000     :810
-1100000000     :820
-0000000000     :830
-0000000000     :840
-1100000000     :850
-0000000000     :860
-0000000000     :870
-1100000000     :880
-0000000000     :890
-0000000000     :900
-1100000000     :910
-0000000000     :920
-0000000000     :930
-1100000000     :940
-0000000000     :950
-0000000000     :960
-1100000000     :970
-0000000000     :980
-0000000000     :990
-1100000000     :1000
diff --git a/tests/shootout_pidigits.args b/tests/shootout_pidigits.args
deleted file mode 100644 (file)
index 83b33d2..0000000
+++ /dev/null
@@ -1 +0,0 @@
-1000
diff --git a/tests/shootout_pidigits.nit b/tests/shootout_pidigits.nit
deleted file mode 100644 (file)
index 8ed7ffa..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-# This file is part of NIT ( http://www.nitlanguage.org ).
-#
-# Copyright 2005-2008 Jean Privat <jean@pryen.org>
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-# The Comptuer Language Shootout Benchmarks
-# http://shootout.alioth.debian.org
-#
-# contributed by Jean Privat
-
-# Incorrect without bignums
-
-class PiDigitSpigot
-    var _z: Transformation
-    var _x: Transformation
-    var _inverse: Transformation
-    
-
-    init
-       do
-           _z = new Transformation(1,0,0,1)
-           _x = new Transformation(0,0,0,0)
-           _inverse = new Transformation(0,0,0,0)
-       end
-
-
-    fun next: Int
-       do
-           var y = digit
-           if is_safe(y) then
-               _z = produce(y)
-               return y
-           else
-               _z = consume(_x.next)
-               return next
-           end
-       end
-       
-    fun next_: Int
-       do
-           var y = digit
-           while not is_safe(y) do
-               _z = consume(_x.next)
-               y = digit
-           end
-           _z = produce(y)
-           return y
-       end
-
-    fun digit: Int
-       do
-           return _z.extract(3)
-       end
-
-    fun is_safe(digit: Int): Bool
-       do
-           return digit == _z.extract(4)
-       end
-
-    fun produce(i: Int): Transformation
-       do
-           return _inverse.qrst(10,-10*i,0,1).compose(_z)
-       end
-
-    fun consume(a: Transformation): Transformation
-       do
-           return _z.compose(a)
-       end
-end
-
-
-class Transformation
-    var _q: Int
-    var _r: Int
-    var _s: Int
-    var _t: Int
-    var _k: Int
-
-    init(q: Int, r: Int, s: Int, t: Int)
-        do
-           set(q, r, s, t)
-       end
-
-    fun set(q: Int, r: Int, s: Int, t: Int)
-       do
-           _q = q
-           _r = r
-           _s = s
-           _t = t
-           _k = 0
-       end
-
-
-    fun next: Transformation
-       do
-           _k = _k + 1
-           _q = _k
-           _r = 4 * _k + 2
-           _s = 0
-           _t = 2 * _k + 1
-           return self
-       end
-
-    fun extract(j: Int): Int
-       do
-           return (_q * j + _r) / (_s * j + _t)
-       end
-
-    fun compose(a: Transformation): Transformation
-       do
-           return new Transformation(
-               _q * a._q,
-               _q * a._r + _r * a._t,
-               _s * a._q + _t * a._s,
-               _s * a._r + _t * a._t
-               )
-       end
-
-    fun qrst(q: Int, r: Int, s: Int, t: Int): Transformation
-       do
-           set(q, r, s, t)
-           return self
-       end
-end
-
-
-var witdh = 10
-var n = args.first.to_i
-var j = 0
-
-var digits = new PiDigitSpigot
-
-while n > 0 do
-    if n >= witdh then
-       for i in [0..witdh[ do
-           printn(digits.next)
-       end
-       j = j + witdh
-    else
-       for i in [0..n[ do
-           printn(digits.next)
-       end
-       for i in [n..witdh[ do
-           printn(" ")
-       end
-       j = j + n
-    end
-    print("\t:{j}")
-    n = n - witdh
-end