Advertisement
Guest User

Untitled

a guest
Dec 6th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. Test Failed:
  2. Testing RecommenderMaker.makerecs() with input:
  3. name = student1001
  4. items = ["The Hitchhiker's Guide To The Galaxy", 'Watership Down', 'The Five People You Meet in Heaven', 'Speak', 'I Know Why the Caged Bird Sings', 'Thirteen Reasons Why', 'Foundation Series', 'The Sisterhood of the Travelling Pants', 'A Great and Terrible Beauty', 'The Da Vinci Code', 'The Princess Diaries', "Ender's Game", 'The Hunt for Red October', 'The Hunger Games', 'The Great Gatsby', "Ranger's Apprentice Series", 'Inkheart', 'Neuromancer', 'Lord of the Flies', 'The Princess Bride', 'Dinotopia: A Land Apart from Time', 'Far North', 'Practical Magic', 'Brave New World', 'The Summer Tree', 'Flowers For Algernon', 'Owl in Love', 'Naruto', 'Bleach (graphic novel)', 'Kiss the Dust', 'To Kill a Mockingbird', 'The Lion the Witch and the Wardrobe', 'The Bourne Series', 'Life of Pi', 'Breathless', 'Twilight Series', 'Sabriel', 'Nineteen Eighty-Four (1984)', 'Eragon', 'Hatchet', "My Sister's Keeper", 'The Golden Compass', 'Harry Potter Series', 'Holes', 'Shonen Jump Series', 'The Shadow Club', 'Bone Series', "Maus: A Survivor's Tale", 'The Joy Luck Club', 'The Lord of the Rings', 'The Hobbit', 'Shattered', 'The War Of The Worlds', 'Dealing with Dragons', 'The Chrysalids']
  5. ratings is too long to display
  6. size = 2
  7. top = 8
  8.  
  9. For the second element in the tuple:
  10.  
  11. Expected:
  12. [('Flowers For Algernon', 1055.0), ('Sabriel', 1055.0), ('The Lord of the Rings', 1042.5), ("My Sister's Keeper", 1030.0), ('Watership Down', 633.0), ('The Princess Bride', 618.0), ('Lord of the Flies', 419.5), ('The Great Gatsby', 414.5)]
  13. Receieved:
  14. [('Flowers For Algernon', 1055.0), ('Sabriel', 1055.0), ('The Lord of the Rings', 1042.5), ("My Sister's Keeper", 1030.0), ('Watership Down', 633.0), ('The Princess Bride', 618.0), ('Lord of the Flies', 419.5), ('The Chrysalids', 414.5)]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement