Bangladesh drew the high-scoring first Test against Sri Lanka at the Galle international stadium on Tuesday to snap their 12-Test losing streak against the islanders.
Chasing an improbable 268-run victory target with just one session and 37 overs left, Bangladesh were 70 for one wicket in 22 overs when the teams agreed to a draw after five days of batting dominance on a placid track.
Only 19 wickets fell in the Test while eight centuries were scored, equalling the record set in the 2005 South Africa - West Indies Test at Antigua.
The 1613 runs scored by both teams also made it the highest match-aggregate in a Test in Sri Lanka.
Bangladesh captain Mushfiqur Rahim, who scored his country's maiden Test double century, was named man of the match.
Colombo hosts the second and final Test from Saturday.
Earlier, Kumar Sangakkara (105) helped himself to his second century of the match while Tillakaratne Dilshan (126) also joined the list of centurions before Sri Lanka declared their second innings on 335 for four at tea.
Sangakkara completed his 32nd Test hundred shortly before lunch to become the fifth Sri Lankan -- after Duleep Mendis, Asanka Gurusinha, Aravinda de Silva (twice) and Dilshan -- to score centuries in both innings of a Test match.
He was dismissed by the second ball after lunch when he pulled a short delivery from Mahmudullah to Jaharul Islam at mid-wicket to fall after a 172-ball knock that had 10 fours in it.
Dilshan, who had scored his 16th Test century off 190 balls, with nine fours, was caught at deep square leg, giving Mahmudullah his second wicket of the innings.
Dilshan and Sangakkara put on 213 runs for the second wicket.
Mahmudullah captured his third victim when he bowled debutant Kithuruwan Vithanage (59) after inducing an inside edge.
Mathews was unbeaten on 38 and Lahiru Thirimanne on two when Sri Lanka declared at the tea break.
Sri Lanka (1st innings): 570-4 decl.
Bangladesh (1st innings): 638
Sri Lanka (2nd innings): (116-1 overnight)
D. Karunaratne c Abul b Shahadat 3
T. Dilshan c Abul b Mahmudullah 126
K. Sangakkara c Jahurul b Mahmudullah 105
K. Vithanage b Mahmudullah 59
A. Mathews not out 38
L. Thirimanne not out 2
Extras: (nb-2) 2
Total: (For four wickets declared, in 83 overs) 335
Fall of wickets: 1-17, 2-230, 3-249, 4-320.
Did not bat: D. Chandimal, N. Kulasekara, S. Eranga, R. Herath, A. Mendis.
Bowling: Shahadat 9-1-33-1 (nb-2), Abul Hasan 10-0-45-0, Sohag Gazi 15-1-58-0, Elias Sunny 20-0-76-0, Mominul Haque 5-0-25-0, Mohammad Ashraful 1-0-10-0, Mahmudullah 20-1-70-3, Nasir Hossain 3-0-18-0.
Bangladesh (2nd innings):
Jahurul Islam not out 41
Anamal Haque b Eranga 1
Mohammad Ashraful not out 22
Extras: (b-4, lb-1, nb-1) 6
Total: (For one wicket in 22 overs) 70
Fall of wickets: 1-2.
Bowling: Kulasekara 4-1-6-0 (nb-1), Eranga 3-1-10-1, Herath 4-0-15-0, Mendis 7-1-23-0, Dilshan 4-0-11-0.
Man of the Match: Mushfiqur Rahim.
Second Test: March 16-20 at R Premadasa stadium, Colombo.
Photograph: Robert Cianflone/Getty Images