Earlier, Devon Conway fell for 92 but Tom Latham could not be denied his century after New Zealand resumed on 165 for no loss at the National Stadium.
Karunaratne fell for 86 in the final session but Mendis was batting on 84 at stumps
The duo's stand of 87 off 39 balls took GT pass the finish line and to the top of the table.
Dean Elgar lived up to his reputation as a dogged, street-fighting batsman as he held the Indian bowling attack at bay, scoring a patient 46 off 121 balls.
Stuart Broad picked up the final two wickets in his last appearance for England to guide the hosts to a series-levelling 49-run victory in the fifth and final Ashes Test against Australia.
The former India captain said even after breaking his jaw he felt it was his responsibility to get some wickets for the team.
Images from the ICC World Cup match between Sri Lanka and Afghanistan, in Pune, on Monday.
India pacer Mohammed Siraj said his approach to bowl consistently at one spot yielded rich dividends for him on Day 2 of the opening Test against Bangladesh in Chattogram.
Calm was the need of the hour and the batters understood that to the T. They converted the singles into twos, scored the odd boundary every over and played no false shots.
England take a 1-0 lead in the three-match series.
Australia laboured to a modest 263 all out on the opening day of the second Test against India in New Delhi
'Whenever I walk out to bat, people assume I just took that decision and came out, but that's a role given to me.'
Steve Smith scored an unbeaten 85 to guide Australia to 339/5 as England wasted favourable bowling conditions on the first day of the second Ashes Test.
DC's fate was sealed when they lost three quick wickets inside the Powerplay.
Australia declared their first innings on 556 for nine and then skittled out Pakistan for 148 to seize control of the second Test in Karachi on Monday.
Centurion Jason Roy and skipper Jos Buttler played scintillating knocks to guide England to a series win over hosts Bangladesh.
Poor batting was at the heart of the debacle.
Jadeja raised 81 runs for the unbroken eighth wicket with Axar Patel (52) to drive home India's advantage.
Images from Day 1 of the third Test played between India and Australia at the Holkar Stadium in Indore on Wednesday
Pakistan captain Babar Azam and his deputy Mohammad Rizwan were looking to get some batting practice but were forced off the ground as the rain stopped play in the third over.
South Africa lost two wickets after tea but extended their lead over New Zealand to 211 runs by the close of Day 3 to leave the second Test delicately poised, in Christchurch, on Sunday.
Just when things looked to go well for Pakistan, Shadab dropped Bhanuka Rajapaksa at long on off Haris.
Earlier, Bangladesh won the toss and opted to bat but all-rounder Curran gave England an ideal start after dismissing the two openers in his first spell.
Once the batting maestro scores a century, Wasim Jaffer declares, the world will once again get to see the Kohli of old.
Elgar's tactics and decision-making were terrible, says Simon Katich
Steve Smith was on 59 unbeaten with Labuschagne at the close.
IMAGES from Day 2 of the 2nd Test played between England and South Africa played in Old Trafford on Friday.
IMAGES from Day 4 of the second Test between India and West Indies at Queen's Park Oval, Port of Spain, on Sunday.
But Stokes then introduced Ahmed in the afternoon session and the youngster ripped apart Pakistan's middle order.
Ravindra Jadeja led the demolition of Australia with the ball as India triumphed by six wickets inside three days in the second Test.
My main agenda is to bowl in powerplay, take early wickets, says Shivam Mavi
The hosts then raced to 199-6 in 31 overs, effectively batting West Indies out of the contest, before declaring their second innings.
Australia bundled out Sri Lanka for 212 but endured a top order wobble of their own before reaching 98/3 in reply after a frenetic, spin-dominated day one of the opening Test in Galle on Wednesday.
IMAGES from Day 2 of the 3rd Test played between India and Australia in Indore on Thursday.
After Ben Stokes enforced a follow on, New Zealand left the England bowlers frustrated on Day 3 of the second Test in Wellington.
But Pant took the game away from the Lankans by going after the bowling as soon as he walked to the crease, bringing up his fifty with seven fours and two sixes.
In a short span of time, Arshdeep came up with memorable performances, including in the high-pressure T20 World Cup game against Pakistan at the MCG.
And one Saturday evening, under the Mumbai night sky, next to the Arabian Sea, with the 'God of Cricket' in attendance, Mumbai Indians were done in by the brilliance and resilience of Punjab Kings.
Images from the IPL 2023 match between Punjab Kings and Royal Challengers Bangalore on Thursday.
After the stumps on Day 2, Sri Lanka's score read 108/4 as they are trailing India by 466 runs.