Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/utgwkk/test2-tools-html
Compare HTML string with Test2
https://github.com/utgwkk/test2-tools-html
Last synced: about 1 month ago
JSON representation
Compare HTML string with Test2
- Host: GitHub
- URL: https://github.com/utgwkk/test2-tools-html
- Owner: utgwkk
- License: other
- Created: 2020-10-27T11:27:40.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-10-27T12:39:59.000Z (about 4 years ago)
- Last Synced: 2024-10-08T00:40:48.890Z (3 months ago)
- Language: Perl
- Homepage:
- Size: 18.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
- License: LICENSE
Awesome Lists containing this project
README
# NAME
Test2::Tools::HTML - Compare HTML string with Test2
# SYNOPSIS
use Test2::V0;
use Test2::Tools::HTML;is '', html('');
is <Hello, world!
');
Hello, world!
HTML# DESCRIPTION
Test2::Tools::HTML provides comparison tools for HTML string.
This module was inspired by [Test::HTML::Differences](https://metacpan.org/pod/Test%3A%3AHTML%3A%3ADifferences) and [Test2::Tools::JSON](https://metacpan.org/pod/Test2%3A%3ATools%3A%3AJSON).# FUNCTIONS
- $check = html($expected)
Verify the value in the `$got` HTML string has the same HTML structure as `$expected`.
is '', html('');
# SEE ALSO
[Test::HTML::Differences](https://metacpan.org/pod/Test%3A%3AHTML%3A%3ADifferences)
[Test2::Suite](https://metacpan.org/pod/Test2%3A%3ASuite), [Test2::Tools::Compare](https://metacpan.org/pod/Test2%3A%3ATools%3A%3ACompare)
# LICENSE
Copyright (C) utgwkk.
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.# AUTHOR
utgwkk