mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-11-27 13:40:15 +03:00
Remove trivial testing input files
This commit is contained in:
parent
09466a96bb
commit
61878ef1b6
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1 @@
|
||||
1/1: Building TestException (TestException.idr)
|
||||
TestException>
|
||||
Bye for now!
|
||||
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 TestException.idr < input
|
||||
check TestException.idr
|
||||
|
@ -1,5 +1,4 @@
|
||||
1/1: Building BitOps (BitOps.idr)
|
||||
Main> [0, 1, 2, 4, 8, 16, 32, 64, 127]
|
||||
[0, 1, 2, 4, 8, 16, 32, 64, 127]
|
||||
[0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32767]
|
||||
[0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483647]
|
||||
[0, 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536, 131072, 262144, 524288, 1048576, 2097152, 4194304, 8388608, 16777216, 33554432, 67108864, 134217728, 268435456, 536870912, 1073741824, 2147483648, 4294967296, 8589934592, 17179869184, 34359738368, 68719476736, 137438953472, 274877906944, 549755813888, 1099511627776, 2199023255552, 4398046511104, 8796093022208, 17592186044416, 35184372088832, 70368744177664, 140737488355328, 281474976710656, 562949953421312, 1125899906842624, 2251799813685248, 4503599627370496, 9007199254740992, 18014398509481984, 36028797018963968, 72057594037927936, 144115188075855872, 288230376151711744, 576460752303423488, 1152921504606846976, 2305843009213693952, 4611686018427387903]
|
||||
@ -59,4 +58,3 @@ Main> [0, 1, 2, 4, 8, 16, 32, 64, 127]
|
||||
[0, 8, 16]
|
||||
[0, 16, 32]
|
||||
[0, 32, 64, 33]
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 BitOps.idr < input
|
||||
run BitOps.idr
|
||||
|
@ -1,5 +1,4 @@
|
||||
1/1: Building BitRotate (BitRotate.idr)
|
||||
Main> ------------------------------------------------------------------------
|
||||
------------------------------------------------------------------------
|
||||
-- RotR Bits8
|
||||
00000000 00000000
|
||||
00000001 10000000
|
||||
@ -413,4 +412,3 @@ Main> ------------------------------------------------------------------------
|
||||
1110000000000000000000000000000000000000000000000000000000000000 1100000000000000000000000000000000000000000000000000000000000001
|
||||
1000000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000001
|
||||
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 BitRotate.idr < input
|
||||
run BitRotate.idr
|
||||
|
@ -1,5 +1,4 @@
|
||||
1/1: Building Integral (Integral.idr)
|
||||
Main> "Nat Even"
|
||||
"Nat Even"
|
||||
[True, True, True, True, True]
|
||||
"Nat Odd"
|
||||
[True, True, True, True, True]
|
||||
@ -7,4 +6,3 @@ Main> "Nat Even"
|
||||
[True, True, True, True, True]
|
||||
"Integral Odd"
|
||||
[True, True, True, True, True, True]
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Integral.idr < input
|
||||
run Integral.idr
|
||||
|
@ -1,5 +1,3 @@
|
||||
1/1: Building List (List.idr)
|
||||
Main> [[9, 6, 7, 8], [6, 9, 7, 8], [6, 7, 8, 9], [9, 6], [6, 9], [9]]
|
||||
[[9, 6, 7, 8], [6, 9, 7, 8], [6, 7, 8, 9], [9, 6], [6, 9], [9]]
|
||||
[[], [4], [3], [4, 5], [3, 5], [3, 4]]
|
||||
[[6], [6, 4], [3, 6], [6, 4, 5], [3, 6, 5], [3, 4, 6]]
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 List.idr < input
|
||||
run List.idr
|
||||
|
@ -1,5 +1,4 @@
|
||||
1/1: Building Lines (Lines.idr)
|
||||
Main> []
|
||||
[]
|
||||
["ab"]
|
||||
["ab"]
|
||||
["ab", "cd"]
|
||||
@ -7,4 +6,3 @@ Main> []
|
||||
["a", "b"]
|
||||
["a", "b"]
|
||||
["", "", ""]
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Lines.idr < input
|
||||
run Lines.idr
|
||||
|
@ -1,8 +1,6 @@
|
||||
1/1: Building Unlines (Unlines.idr)
|
||||
Main> "<>"
|
||||
"<>"
|
||||
"<ab\n>"
|
||||
"<a\nb\n>"
|
||||
"<>"
|
||||
"<ab\n>"
|
||||
"<a\nb\n>"
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Unlines.idr < input
|
||||
run Unlines.idr
|
||||
|
@ -1,5 +1,4 @@
|
||||
1/1: Building Vect (Vect.idr)
|
||||
Main> [(0 ** []), (1 ** [3]), (5 ** [3, 4, 5, 6, 7])]
|
||||
[(0 ** []), (1 ** [3]), (5 ** [3, 4, 5, 6, 7])]
|
||||
[(0 ** ([], 3)), (1 ** ([3], 4)), (2 ** ([3, 4], 5))]
|
||||
[(1 ** [2]), (2 ** [6, 2]), (4 ** [120, 24, 6, 2])]
|
||||
[[2, 3, 4], [3, 4], [4], []]
|
||||
@ -9,4 +8,3 @@ Main> [(0 ** []), (1 ** [3]), (5 ** [3, 4, 5, 6, 7])]
|
||||
[[1, 5], [2, 6], [3, 7], [4, 8]]
|
||||
[]
|
||||
[0, 1, 2]
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Vect.idr < input
|
||||
run Vect.idr
|
||||
|
@ -1,2 +0,0 @@
|
||||
1/1: Building ReadDir (ReadDir.idr)
|
||||
Main> Main> Bye for now!
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 ReadDir.idr < input
|
||||
run ReadDir.idr
|
||||
|
@ -1,2 +0,0 @@
|
||||
1/1: Building Test (Test.idr)
|
||||
Main> Main> Bye for now!
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Test.idr < input
|
||||
run Test.idr
|
||||
|
@ -1,5 +1,4 @@
|
||||
1/1: Building ReadFilePage (ReadFilePage.idr)
|
||||
Main> empty: []
|
||||
empty: []
|
||||
one
|
||||
|
||||
two
|
||||
@ -28,8 +27,7 @@ three lines in
|
||||
four
|
||||
five lines total
|
||||
|
||||
Main> Bye for now!
|
||||
Main> empty: []
|
||||
empty: []
|
||||
one
|
||||
|
||||
two
|
||||
@ -58,4 +56,3 @@ three lines in
|
||||
four
|
||||
five lines total
|
||||
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -2,14 +2,14 @@
|
||||
|
||||
# @readFilePage@ uses primitive functions with definitions for both
|
||||
# C (supported by most backends) and Node.
|
||||
idris2 --cg chez ReadFilePage.idr < input
|
||||
idris2 --cg node ReadFilePage.idr < input
|
||||
run --cg chez ReadFilePage.idr
|
||||
run --cg node ReadFilePage.idr
|
||||
|
||||
# The following backends failed for reasons unrelated to this test. They can be
|
||||
# uncommented at a future date.
|
||||
# RACKET failed to find the builtin idris support library
|
||||
# idris2 --cg racket ReadFilePage.idr < input
|
||||
# run --cg racket ReadFilePage.idr
|
||||
# REFC doesn't support :exec yet
|
||||
# idris2 --cg refc ReadFilePage.idr < input
|
||||
# run --cg refc ReadFilePage.idr
|
||||
# GAMBIT hung seemingly indefinitely
|
||||
# idris2 --cg gambit ReadFilePage.idr < input
|
||||
# run --cg gambit ReadFilePage.idr
|
||||
|
@ -1,3 +1 @@
|
||||
1/1: Building CopyFile (CopyFile.idr)
|
||||
Main> Main> Bye for now!
|
||||
AQIDBA==
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,6 +1,6 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 CopyFile.idr < input
|
||||
run CopyFile.idr
|
||||
base64 -i dest.bin
|
||||
|
||||
rm dest.bin
|
||||
|
@ -1,3 +1 @@
|
||||
1/1: Building ReadFile (ReadFile.idr)
|
||||
Main> "Hello, world\nLorem ipsum\n"
|
||||
Main> Bye for now!
|
||||
"Hello, world\nLorem ipsum\n"
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 ReadFile.idr < input
|
||||
run ReadFile.idr
|
||||
|
@ -1,5 +1,3 @@
|
||||
1/1: Building Popen (Popen.idr)
|
||||
Main> "Hello, world"
|
||||
"Hello, world"
|
||||
"Hello, $PATH"
|
||||
17
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Popen.idr < input
|
||||
run Popen.idr
|
||||
|
@ -1,5 +1,3 @@
|
||||
1/1: Building Run (Run.idr)
|
||||
Main> "Hello, world"
|
||||
"Hello, world"
|
||||
"Hello, $PATH"
|
||||
("", 17)
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Run.idr < input
|
||||
run Run.idr
|
||||
|
@ -1,6 +1,3 @@
|
||||
1/1: Building IgnoreSignal (IgnoreSignal.idr)
|
||||
Main> before
|
||||
before
|
||||
after
|
||||
done.
|
||||
Main>
|
||||
Bye for now!
|
||||
|
@ -1 +0,0 @@
|
||||
:exec main
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 IgnoreSignal.idr < input
|
||||
run IgnoreSignal.idr
|
||||
|
@ -1,6 +1,3 @@
|
||||
1/1: Building HandleSignal (HandleSignal.idr)
|
||||
Main> before
|
||||
before
|
||||
after
|
||||
done.
|
||||
Main>
|
||||
Bye for now!
|
||||
|
@ -1 +0,0 @@
|
||||
:exec main
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 HandleSignal.idr < input
|
||||
run HandleSignal.idr
|
||||
|
@ -1,3 +0,0 @@
|
||||
1/1: Building DefaultSignal (DefaultSignal.idr)
|
||||
Main> Main>
|
||||
Bye for now!
|
@ -1 +0,0 @@
|
||||
:exec main
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 DefaultSignal.idr < input 2> /dev/null
|
||||
run DefaultSignal.idr 2> /dev/null
|
||||
|
@ -1,6 +1,3 @@
|
||||
1/1: Building HandleManySignals (HandleManySignals.idr)
|
||||
Main> before
|
||||
before
|
||||
after
|
||||
done.
|
||||
Main>
|
||||
Bye for now!
|
||||
|
@ -1 +0,0 @@
|
||||
:exec main
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 HandleManySignals.idr < input
|
||||
run HandleManySignals.idr
|
||||
|
@ -1,5 +1,2 @@
|
||||
1/1: Building Time (Time.idr)
|
||||
Main> Retrieved unix timestamp from time function.
|
||||
Main> Bye for now!
|
||||
Main> Retrieved unix timestamp from time function.
|
||||
Main> Bye for now!
|
||||
Retrieved unix timestamp from time function.
|
||||
Retrieved unix timestamp from time function.
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -2,14 +2,14 @@
|
||||
|
||||
# @time@ uses a primitive function with definitions for both
|
||||
# C (supported by most backends) and Javascript (Node & Browsers).
|
||||
idris2 --cg chez Time.idr < input
|
||||
idris2 --cg node Time.idr < input
|
||||
run --cg chez Time.idr
|
||||
run --cg node Time.idr
|
||||
|
||||
# The following backends failed for reasons unrelated to this test. They can be
|
||||
# uncommented at a future date.
|
||||
# RACKET failed to find the builtin idris support library
|
||||
# idris2 --cg racket ReadFilePage.idr < input
|
||||
# run --cg racket ReadFilePage.idr
|
||||
# REFC doesn't support :exec yet
|
||||
# idris2 --cg refc ReadFilePage.idr < input
|
||||
# run --cg refc ReadFilePage.idr
|
||||
# GAMBIT hung seemingly indefinitely
|
||||
# idris2 --cg gambit ReadFilePage.idr < input
|
||||
# run --cg gambit ReadFilePage.idr
|
||||
|
@ -1,2 +0,0 @@
|
||||
1/1: Building BitOps (BitOps.idr)
|
||||
Main> Main> Bye for now!
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 BitOps.idr < input
|
||||
run BitOps.idr
|
||||
|
@ -1,2 +0,0 @@
|
||||
1/1: Building Casts (Casts.idr)
|
||||
Main> Main> Bye for now!
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Casts.idr < input
|
||||
run Casts.idr
|
||||
|
@ -1,3 +1 @@
|
||||
1/1: Building Total (Total.idr)
|
||||
Main> [1, 2, 2, 4, 3, 6, 4, 8, 5, 10]
|
||||
Main> Bye for now!
|
||||
[1, 2, 2, 4, 3, 6, 4, 8, 5, 10]
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Total.idr < input
|
||||
run Total.idr
|
||||
|
@ -1,6 +1,4 @@
|
||||
1/1: Building IORef (IORef.idr)
|
||||
Main> 94
|
||||
94
|
||||
94
|
||||
188
|
||||
188
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 IORef.idr < input
|
||||
run IORef.idr
|
||||
|
@ -1,5 +1,4 @@
|
||||
1/1: Building Buffer (Buffer.idr)
|
||||
Main> 100
|
||||
100
|
||||
94
|
||||
94.42
|
||||
bytes: 27
|
||||
@ -21,4 +20,3 @@ total size = 20
|
||||
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
|
||||
|
||||
total size = 80
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,4 +1,4 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 -p contrib Buffer.idr < input
|
||||
run -p contrib Buffer.idr
|
||||
rm -rf build test.buf
|
||||
|
@ -1,5 +1,3 @@
|
||||
1/1: Building TypeCase (TypeCase.idr)
|
||||
Main> "Function from Nat to Nat"
|
||||
"Function from Nat to Nat"
|
||||
"Function from Nat to Vector of 0 Int"
|
||||
"Function on Type"
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 TypeCase.idr < input
|
||||
run TypeCase.idr
|
||||
|
@ -1,5 +1,3 @@
|
||||
1/1: Building Nat (Nat.idr)
|
||||
Main> 1
|
||||
1
|
||||
1
|
||||
Main> Bye for now!
|
||||
1
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Nat.idr < input
|
||||
run Nat.idr
|
||||
|
@ -1,4 +1,2 @@
|
||||
1/1: Building uni (uni.idr)
|
||||
Main> 42
|
||||
42
|
||||
ällo
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 uni.idr < input
|
||||
run uni.idr
|
||||
|
@ -1,5 +1,4 @@
|
||||
1/1: Building CB (CB.idr)
|
||||
Main> 9
|
||||
9
|
||||
Callback coming
|
||||
In callback
|
||||
24
|
||||
@ -8,4 +7,3 @@ In callback with (1, 2)
|
||||
3
|
||||
9
|
||||
'k'
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -11,5 +11,5 @@ case $(uname -s) in
|
||||
esac
|
||||
|
||||
${MAKE} all > /dev/null
|
||||
idris2 CB.idr < input
|
||||
run CB.idr
|
||||
${MAKE} clean > /dev/null
|
||||
|
@ -1,4 +1,2 @@
|
||||
1/1: Building array (array.idr)
|
||||
Main> [Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Just "Hello", Just "World", Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing]
|
||||
[Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Just "Hello", Just "World", Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing]
|
||||
[Just 1, Just 2, Just 3, Just 4, Just 5]
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 array.idr < input
|
||||
run array.idr
|
||||
|
@ -1,5 +1,3 @@
|
||||
1/1: Building Struct (Struct.idr)
|
||||
Main> Made it!
|
||||
Made it!
|
||||
(40, 30)
|
||||
"Here": (40, 30)
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -11,5 +11,5 @@ case $(uname -s) in
|
||||
esac
|
||||
|
||||
${MAKE} all > /dev/null
|
||||
idris2 Struct.idr < input
|
||||
run Struct.idr
|
||||
${MAKE} clean > /dev/null
|
||||
|
@ -1,6 +1,4 @@
|
||||
1/1: Building Echo (Echo.idr)
|
||||
Main> Received: hello world from a ipv4 socket!
|
||||
Received: hello world from a ipv4 socket!
|
||||
Received: echo: hello world from a ipv4 socket!
|
||||
Received: hello world from a unix socket!
|
||||
Received: echo: hello world from a unix socket!
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 -p network Echo.idr < input
|
||||
run -p network Echo.idr
|
||||
|
@ -1,4 +1,2 @@
|
||||
1/1: Building Numbers (Numbers.idr)
|
||||
Main> [3518437212345678901234567890560, 1537557061795061679839506167983751, 3518437212345678901234567889686, 8051343735344802977653473432, 339]
|
||||
[3518437212345678901234567890560, 1537557061795061679839506167983751, 3518437212345678901234567889686, 8051343735344802977653473432, 339]
|
||||
[-9223372036854775439, 9223372036854772792, 9223372036854775423, 24465177816590917, 91]
|
||||
Main> Bye for now!
|
||||
|
@ -1,2 +0,0 @@
|
||||
:exec main
|
||||
:q
|
@ -1,3 +1,3 @@
|
||||
. ../../testutils.sh
|
||||
|
||||
idris2 Numbers.idr < input
|
||||
run Numbers.idr
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user