Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
renggli committed Sep 12, 2023
1 parent e168e5e commit 27c61dc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/regression_test.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import 'package:test/test.dart';
import 'package:xml/xml.dart';
import 'package:xml/xml_events.dart';
import 'package:xml/xpath.dart';

import 'utils/assertions.dart';
import 'utils/examples.dart';

class TrimTextVisitor with XmlVisitor {
@override
Expand Down Expand Up @@ -278,4 +280,9 @@ void main() {
['<item>a</item>', '<item>b</item>']);
});
});
test('https://stackoverflow.com/questions/77055363', () {
final xml = XmlDocument.parse(booksXml);
final result = xml.xpath('//book[contains(@id, "106")]/title');
expect(result.map((each) => each.innerText), ['Lover Birds']);
});
}

0 comments on commit 27c61dc

Please sign in to comment.