citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 75f99e9fa975f2ba5b74293c175bc54cbd70c09f
parent 99680fd3ecb0a577fb693003f5e1acbd6c63a03b
Author: Kyle Milz <kyle@0x30.net>
Date:   Fri, 16 Dec 2016 01:24:59 -0700

t: move www/t/ html validation

Diffstat:
At/www_valid.t | 15+++++++++++++++
Dwww/t/validate.t | 5-----
2 files changed, 15 insertions(+), 5 deletions(-)

diff --git a/t/www_valid.t b/t/www_valid.t @@ -0,0 +1,15 @@ +# +# Test that we can count an executing program as its running. +# +use strict; +use warnings; +use LWP::UserAgent; +use Test::HTML::Tidy tests => 2; +use Test::More; + +my $ua = LWP::UserAgent->new(); +my $resp = $ua->get("http://cit.run"); + +ok( $resp->is_success, "is http response success" ); + +html_tidy_ok($resp->decoded_content, "is html tidy"); diff --git a/www/t/validate.t b/www/t/validate.t @@ -1,5 +0,0 @@ -use strict; -use Test::More tests => 1; - -my $ret = system( "webtidy index.html" ); -is( $ret, 0, "index.html is tidy" );