Skip to content

Commit

Permalink
BST test codes bug fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuyubobobo committed Nov 14, 2017
1 parent b624010 commit 224f13f
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public static void main(String[] args) {
for(int i = 0 ; i < 2*N ; i ++){
String res = bst.search(new Integer(i));
if( i < N )
assert res == Integer.toString(i);
assert res.equals(Integer.toString(i));
else
assert res == null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public static void main(String[] args) {
for(int i = 0 ; i < 2*N ; i ++){
String res = bst.search(new Integer(i));
if( i < N )
assert res == Integer.toString(i);
assert res.equals(Integer.toString(i));
else
assert res == null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public static void main(String[] args) {
for(int i = 0 ; i < 2*N ; i ++){
String res = bst.search(new Integer(i));
if( i < N )
assert res == Integer.toString(i);
assert res.equals(Integer.toString(i));
else
assert res == null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public static void main(String[] args) {
for(int i = 0 ; i < 2*N ; i ++){
String res = bst.search(new Integer(i));
if( i < N )
assert res == Integer.toString(i);
assert res.equals(Integer.toString(i));
else
assert res == null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public static void main(String[] args) {
for(int i = 0 ; i < 2*N ; i ++){
String res = bst.search(new Integer(i));
if( i < N )
assert res == Integer.toString(i);
assert res.equals(Integer.toString(i));
else
assert res == null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public static void main(String[] args) {
for(int i = 0 ; i < 2*N ; i ++){
String res = bst.search(new Integer(i));
if( i < N )
assert res == Integer.toString(i);
assert res.equals(Integer.toString(i));
else
assert res == null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ public static void main(String[] args) {
for(int i = 0 ; i < 2*N ; i ++){
String res = bst.search(new Integer(i));
if( i < N )
assert res == Integer.toString(i);
assert res.equals(Integer.toString(i));
else
assert res == null;
}
Expand Down

0 comments on commit 224f13f

Please sign in to comment.