mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 10:02:03 +03:00
43 lines
903 B
Plaintext
43 lines
903 B
Plaintext
|
. ../../testutils.sh
|
||
|
|
||
|
idris2 --build test.ipkg
|
||
|
|
||
|
P="build/exec/use-get-opt"
|
||
|
|
||
|
echo "======== Good ========"
|
||
|
|
||
|
"$P"
|
||
|
"$P" --field-a 12
|
||
|
"$P" --field-a 12 --field-a 13
|
||
|
"$P" --field-a=12 --field-a 13
|
||
|
"$P" --field-a 12 --field-a=13
|
||
|
"$P" up
|
||
|
"$P" up down right
|
||
|
"$P" -b 12 up
|
||
|
"$P" up -c "12 "
|
||
|
"$P" up -c "12 "
|
||
|
"$P" up -c "12 " -e
|
||
|
"$P" up -e -c "12 "
|
||
|
"$P" up -c"12 " -e true
|
||
|
"$P" up -c"12 " -e false
|
||
|
"$P" up -c"12 " -etrue
|
||
|
"$P" up -c"12 " -efalse
|
||
|
"$P" up -f -c"12 " -etrue
|
||
|
"$P" up -fc"12 " -etrue
|
||
|
"$P" -b-15
|
||
|
|
||
|
echo '----------'
|
||
|
echo '======== Bad ========'
|
||
|
|
||
|
"$P" --fled-a
|
||
|
"$P" --field-a 12 --fled-a --field-a 13
|
||
|
"$P" --field-a 12 --field-a --field-a 13
|
||
|
"$P" --field-a 12 --field-a 13 --field-a
|
||
|
"$P" --field-c 12 --field-b 13 --field-a
|
||
|
"$P" --field-c 12 --field-b 13 --field-a=
|
||
|
"$P" --field-c 12 --field-a= --field-b 13
|
||
|
"$P" --field-c 12 --field-b 13 --field-f=16
|
||
|
"$P" --field-a 12x
|
||
|
"$P" -b-15f
|
||
|
"$P" lefc -fe up rigth
|