Skip to content

Instantly share code, notes, and snippets.

@zdk
Created May 9, 2011 06:36
Show Gist options
  • Save zdk/962153 to your computer and use it in GitHub Desktop.
Save zdk/962153 to your computer and use it in GitHub Desktop.
01-usage.t
➜ net-search-katalog git:(master) prove -vwl t/01-usage.t
t/01-usage.t ..
ok 1 - The object isa Net::Search::Katalog::Result
not ok 2
ok 3
# Failed test at t/01-usage.t line 32.
# got: '1244'
# expected: '1242'
ok 4
ok 5 - The object isa Net::Search::Entry
not ok 6 - title
# Failed test 'title'
# at t/01-usage.t line 40.
# got: 'Hyundai'
# expected: 'Forbrukerportalen.no: Bil'
not ok 7 - summary
# Failed test 'summary'
# at t/01-usage.t line 41.
# got: 'Bilmerkets hjemmeside.'
# expected: 'Forbrukerr###ts nettsider om bilkj#####arkering, klaging, rettigheter ved kj#####g mye annet nyttig.'
not ok 8 - url
# Failed test 'url'
# at t/01-usage.t line 42.
# got: 'http://www.hyundai.no/'
# expected: 'http://forbrukerportalen.no/temaer/bil'
not ok 9 - metadata is correct
# Failed test 'metadata is correct'
# at t/01-usage.t line 72.
# Structures begin differing at:
# $got->{parent}{breadcrumbs} = 'Katalogen > Bil, b###og motor > Bil > Bilmerker > Hyundai'
# $expected->{parent}{breadcrumbs} = 'Katalogen > Bil, b###og motor > Bil'
1..9
# Looks like you failed 5 tests of 9.
not ok 1 - Links
# Failed test 'Links'
# at t/01-usage.t line 73.
ok 1 - The object isa Net::Search::Katalog::Result
ok 2
ok 3
ok 4
ok 5 - The object isa Net::Search::Entry
not ok 6 - title
# Failed test 'title'
# at t/01-usage.t line 90.
# got: 'Franske elbiler'
# expected: 'Bilcross/rallycross'
ok 7 - summary
not ok 8 - url
# Failed test 'url'
# at t/01-usage.t line 92.
# got: '/bil_bat_og_motor/bil/bilmerker/el-biler/franske_elbiler/'
# expected: '/sport/alle_sportsgrenene/motorsport/bilcross-rallycross/'
not ok 9 - metadata is correct
# Failed test 'metadata is correct'
# at t/01-usage.t line 108.
# Structures begin differing at:
# $got->{breadcrumbs} = 'Katalogen > Bil, b###og motor > Bil > Bilmerker > El-biler'
# $expected->{breadcrumbs} = 'Katalogen > Sport > Alle sportsgrenene > Motorsport'
1..9
# Looks like you failed 3 tests of 9.
not ok 2 - Categories
1..2
# Failed test 'Categories'
# at t/01-usage.t line 109.
# Looks like you failed 2 tests of 2.
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
Test Summary Report
-------------------
t/01-usage.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
Files=1, Tests=2, 5 wallclock secs ( 0.02 usr 0.01 sys + 0.67 cusr 0.04 csys = 0.74 CPU)
Result: FAIL
➜ net-search-katalog git:(master)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment