Skip to content

Commit

Permalink
mark code as blocks of codes by three back-ticks ```
Browse files Browse the repository at this point in the history
  • Loading branch information
bor committed Sep 21, 2016
1 parent 072f591 commit a78679f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@
This module provides a test class which makes it easy to do basic
Test::More style tests on XML input.

```perl
use Test::XML::Simple test => 5;
xml_valid $xml, 'Is valid XML';
xml_node $xml, "/xpath/expression", "specified xpath node is present";
xml_text_is $xml, '/xpath/expr', "expected value", "specified text present";
xml_text_like $xml, '/xpath/expr', qr/expected/, "regex text present";
xml_is_deeply $xml, '/xpath/expr', $xml_fragment, "fragment matches path";
```

##INSTALLATION

Expand Down

0 comments on commit a78679f

Please sign in to comment.