-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_number_line.sh
executable file
Β·124 lines (84 loc) Β· 4.47 KB
/
test_number_line.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# reset
# make debug
echo -e "\n#-----------------#\n#TEST COM UM VALORE\n##"
echo -e "\n#-----------------#\n#test 1 => ref 60 \n##"
ARG="60"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#TEST COM DOIS VALORES\n##"
echo -e "\n#-----------------#\n#test 1 => ref 60 50 \n##"
ARG="60 50"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 2 => ref 50 60 \n##"
ARG="50 60"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#TEST COM TRΓS VALORES\n##"
echo -e "\n#-----------------#\n#test 1 => ref 60 50 70 \n##"
ARG="60 50 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 2 => ref 70 60 50 \n##"
ARG="70 60 50"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 3 => ref 70 50 60 \n##"
ARG="70 50 60"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 4 => ref 50 70 60 \n##"
ARG="50 70 60"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 5 => ref 60 70 50 \n##"
ARG="60 70 50"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#TEST COM QUATRO VALORES\n##"
echo -e "\n#-----------------#\n#test 1 => ref 2 1 5 4 \n##"
ARG="2 1 5 4"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 2 => ref 0 1 5 4 \n##"
ARG="0 1 5 4"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 3 => ref 4 1 5 6 \n##"
ARG="4 1 5 6"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 4 => ref 7 1 5 6 \n##"
ARG="7 1 5 6"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 5 => ref 7 1 10 6 \n##"
ARG="7 1 10 6"; ./bin/push_swap $ARG | wc -l
# echo -e "\n#-----------------#\n#test 4 => ref 7 1 5 6 \n##"
# ARG="7 1 5 6"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#TEST COM CINCO VALORES\n##"
echo -e "\n#-----------------#\n#test 6 => ref 50 55 60 80 70 \n##"
ARG="50 55 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 7 => ref 55 50 60 80 70 \n##"
ARG="55 50 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 8 => ref 61 55 60 80 70 \n##"
ARG="61 55 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 9 => ref 55 61 60 80 70 \n##"
ARG="55 61 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 10 => ref 65 61 60 80 70 \n##"
ARG="65 61 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 11 => ref 61 65 60 80 70 \n##"
ARG="61 65 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 12 => ref 81 90 60 80 70 \n##"
ARG="81 90 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 13 => ref 90 81 60 80 70 \n##"
ARG="90 81 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 14 => ref 75 81 60 80 70 \n##"
ARG="75 81 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 15 => ref 81 75 60 80 70 \n##"
ARG="81 75 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 16 => ref 71 75 60 80 70 \n##"
ARG="71 75 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 17 => ref 75 71 60 80 70 \n##"
ARG="75 71 60 80 70"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 18 => ref 2 4 1 3 5 \n##"
ARG="2 4 1 3 5"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 19 => ref 3 4 2 5 1 \n##"
ARG="3 4 2 5 1"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 20 => ref 5 2 3 1 4 \n##"
ARG="5 2 3 1 4"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 21 => ref 3 5 4 2 1 \n##"
ARG="3 5 4 2 1"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 22 => ref 3 2 5 4 1 \n##"
ARG="3 2 5 4 1"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 23 => ref 3 5 2 1 4 \n##"
ARG="3 5 2 1 4"; ./bin/push_swap $ARG | wc -l
echo -e "\n#-----------------#\n#test 24 => ref 2 1 5 4 3 \n##"
ARG="2 1 5 4 3"; ./bin/push_swap $ARG | wc -l
# echo -e "#-----------------#\n#test 8 => ref 90 100 60 80 70 \n##"
# ./bin/push_swap 90 100 60 80 70
# echo -e "#-----------------#\n#test 8 => ref 90 100 60 80 70 \n##"
# ./bin/push_swap 90 100 60 80 70
# echo -e "#-----------------#\n#test 8 => ref 90 100 60 80 70 \n##"
# ./bin/push_swap 90 100 60 80 70
# echo -e "#-----------------#\n#test 8 => ref 90 100 60 80 70 \n##"
# ./bin/push_swap 90 100 60 80 70
# echo -e "#-----------------#\n#test 7 => ref \n##"
# ./bin/push_swap
# echo -e "#-----------------#\n#test 1 => ref \n##"