@@ -28,7 +28,7 @@ def run_script(commands)
2828 "select" ,
2929 ".exit" ,
3030 ] )
31- expect ( result ) . to eq ( [
31+ expect ( result ) . to match_array ( [
3232 "db > Executed." ,
3333 "db > (1, user1, person1@example.com)" ,
3434 "Executed." ,
@@ -41,7 +41,7 @@ def run_script(commands)
4141 "insert 1 user1 person1@example.com" ,
4242 ".exit" ,
4343 ] )
44- expect ( result1 ) . to eq ( [
44+ expect ( result1 ) . to match_array ( [
4545 "db > Executed." ,
4646 "db > " ,
4747 ] )
@@ -50,7 +50,7 @@ def run_script(commands)
5050 "select" ,
5151 ".exit" ,
5252 ] )
53- expect ( result2 ) . to eq ( [
53+ expect ( result2 ) . to match_array ( [
5454 "db > (1, user1, person1@example.com)" ,
5555 "Executed." ,
5656 "db > " ,
@@ -63,7 +63,7 @@ def run_script(commands)
6363 end
6464 script << ".exit"
6565 result = run_script ( script )
66- expect ( result . last ( 2 ) ) . to eq ( [
66+ expect ( result . last ( 2 ) ) . to match_array ( [
6767 "db > Executed." ,
6868 "db > Need to implement splitting internal node" ,
6969 ] )
@@ -78,7 +78,7 @@ def run_script(commands)
7878 ".exit" ,
7979 ]
8080 result = run_script ( script )
81- expect ( result ) . to eq ( [
81+ expect ( result ) . to match_array ( [
8282 "db > Executed." ,
8383 "db > (1, #{ long_username } , #{ long_email } )" ,
8484 "Executed." ,
@@ -95,7 +95,7 @@ def run_script(commands)
9595 ".exit" ,
9696 ]
9797 result = run_script ( script )
98- expect ( result ) . to eq ( [
98+ expect ( result ) . to match_array ( [
9999 "db > String is too long." ,
100100 "db > Executed." ,
101101 "db > " ,
@@ -109,7 +109,7 @@ def run_script(commands)
109109 ".exit" ,
110110 ]
111111 result = run_script ( script )
112- expect ( result ) . to eq ( [
112+ expect ( result ) . to match_array ( [
113113 "db > ID must be positive." ,
114114 "db > Executed." ,
115115 "db > " ,
@@ -124,7 +124,7 @@ def run_script(commands)
124124 ".exit" ,
125125 ]
126126 result = run_script ( script )
127- expect ( result ) . to eq ( [
127+ expect ( result ) . to match_array ( [
128128 "db > Executed." ,
129129 "db > Error: Duplicate key." ,
130130 "db > (1, user1, person1@example.com)" ,
@@ -141,7 +141,7 @@ def run_script(commands)
141141 script << ".exit"
142142 result = run_script ( script )
143143
144- expect ( result ) . to eq ( [
144+ expect ( result ) . to match_array ( [
145145 "db > Executed." ,
146146 "db > Executed." ,
147147 "db > Executed." ,
@@ -163,7 +163,7 @@ def run_script(commands)
163163 script << ".exit"
164164 result = run_script ( script )
165165
166- expect ( result [ 14 ...( result . length ) ] ) . to eq ( [
166+ expect ( result [ 14 ...( result . length ) ] ) . to match_array ( [
167167 "db > Tree:" ,
168168 "- internal (size 1)" ,
169169 " - leaf (size 7)" ,
@@ -225,7 +225,7 @@ def run_script(commands)
225225 ]
226226 result = run_script ( script )
227227
228- expect ( result [ 30 ...( result . length ) ] ) . to eq ( [
228+ expect ( result [ 30 ...( result . length ) ] ) . to match_array ( [
229229 "db > Tree:" ,
230230 "- internal (size 3)" ,
231231 " - leaf (size 7)" ,
@@ -276,7 +276,7 @@ def run_script(commands)
276276 ]
277277 result = run_script ( script )
278278
279- expect ( result ) . to eq ( [
279+ expect ( result ) . to match_array ( [
280280 "db > Constants:" ,
281281 "ROW_SIZE: 293" ,
282282 "COMMON_NODE_HEADER_SIZE: 6" ,
@@ -296,7 +296,7 @@ def run_script(commands)
296296 script << "select"
297297 script << ".exit"
298298 result = run_script ( script )
299- expect ( result [ 15 ...result . length ] ) . to eq ( [
299+ expect ( result [ 15 ...result . length ] ) . to match_array ( [
300300 "db > (1, user1, person1@example.com)" ,
301301 "(2, user2, person2@example.com)" ,
302302 "(3, user3, person3@example.com)" ,
0 commit comments