bshang
2011-02-28 23:55:42 UTC
Hi, all,
I have a pretty strange bug here when testing my program against the
test case posted on course webpage:
we suppose to get:
manager | employee
------------+------------
Jack | Smith
Jack | Matt
Jack | Sally
Jack | Sam
Jack | Jane
Jack | Sarah
Jack | Jack
John | Joe
John | Sean
John | Mike
John | John
Sean | Jeff
Sean | Tom
Sean | Max
Simon | Kevin
Simon | Amy
Simon | Alex
Simon | Martin
Simon | Simon
Simon | Jen
(20 rows)
However, my program returns:
manager | employee
------------+------------
Jack | Matt
Jack | Sally
Jack | Sam
Jack | Jane
Jack | Sarah
Jack | Jack
John | Joe
John | Sean
John | Mike
John | John
Sean | Jeff
Sean | Tom
Sean | Max
Simon | Kevin
Simon | Amy
Simon | Alex
Simon | Martin
Simon | Simon
Simon | Jen
(19 rows)
The row Jack | Smith is somehow missing. I have checked everything, but
still have no clue. Any one can help me out?
Thanks,
S
I have a pretty strange bug here when testing my program against the
test case posted on course webpage:
we suppose to get:
manager | employee
------------+------------
Jack | Smith
Jack | Matt
Jack | Sally
Jack | Sam
Jack | Jane
Jack | Sarah
Jack | Jack
John | Joe
John | Sean
John | Mike
John | John
Sean | Jeff
Sean | Tom
Sean | Max
Simon | Kevin
Simon | Amy
Simon | Alex
Simon | Martin
Simon | Simon
Simon | Jen
(20 rows)
However, my program returns:
manager | employee
------------+------------
Jack | Matt
Jack | Sally
Jack | Sam
Jack | Jane
Jack | Sarah
Jack | Jack
John | Joe
John | Sean
John | Mike
John | John
Sean | Jeff
Sean | Tom
Sean | Max
Simon | Kevin
Simon | Amy
Simon | Alex
Simon | Martin
Simon | Simon
Simon | Jen
(19 rows)
The row Jack | Smith is somehow missing. I have checked everything, but
still have no clue. Any one can help me out?
Thanks,
S