Coder Social home page Coder Social logo

Comments (3)

hakonhagland avatar hakonhagland commented on September 17, 2024

The failed tests in tags.t and stop.t are also fixed by using absolute paths in @INC instead of relative paths.

from template2.

hakonhagland avatar hakonhagland commented on September 17, 2024

After fixing the @INC paths in stash-xs.t (as described above) there was one remaining failed test:

perl -Mblib t/stash-xs.t
1..79
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11 - running test_expect()
ok 12 - template processor is engaged
ok 13 - input read and split into 33 tests
ok 14 - scalar list method processed OK: [% foo = 'bar'; foo.join %]
ok 15 - scalar list method matched expected
ok 16 - template text 2 processed OK: a: [% a %]
MATCH FAILED
 input: [a: [% a %]\n]
expect: [a:]
output: [a: ]
FAILED 17:  - template text 2 did not match expected
not ok 17 - template text 2 did not match expected
ok 18 - template text 3 processed OK: [% TRY; a; CATCH; "ERROR: $error...
ok 19 - template text 3 matched expected
ok 20 - template text 4 processed OK: [% myitem = 'foo' -%]\n1: [% myit...
ok 21 - template text 4 matched expected
ok 22 - template text 5 processed OK: [% myitem = 'foo' -%]\n[% "* $ite...
ok 23 - template text 5 matched expected
ok 24 - template text 6 processed OK: [% myitem = 'foo' -%]\n[% myitem....
ok 25 - template text 6 matched expected
ok 26 - template text 7 processed OK: [% myitem = 'foo'\n   mylist = [ ...
ok 27 - template text 7 matched expected
ok 28 - template text 8 processed OK: [% "* $item\n" FOREACH item = gl...
ok 29 - template text 8 matched expected
ok 30 - template text 9 processed OK: [% global.mylist.push('bar');\n  ...
ok 31 - template text 9 matched expected
ok 32 - template text 10 processed OK: [% myhash = { msg => 'Hello Worl...
ok 33 - template text 10 matched expected
ok 34 - template text 11 processed OK: [% global.myhash.delete('things'...
ok 35 - template text 11 matched expected
ok 36 - template text 12 processed OK: [% "* $item\n"\n    FOREACH item ...
ok 37 - template text 12 matched expected
ok 38 - template text 13 processed OK: [% items = [ 'foo', 'bar', 'baz'...
ok 39 - template text 13 matched expected
ok 40 - slice of lemon processed OK: [% items = {\n    foo = 'one',\n  ...
ok 41 - slice of lemon matched expected
ok 42 - slice of toast processed OK: [% items = {\n    foo = 'one',\n  ...
ok 43 - slice of toast matched expected
ok 44 - template text 16 processed OK: [% i = 0 %]\n[%- a = [ 0, 1, 2 ] ...
ok 45 - template text 16 matched expected
ok 46 - template text 17 processed OK: [%- a = [ "alpha", "beta", "gamm...
ok 47 - template text 17 matched expected
ok 48 - template text 18 processed OK: [%- a = [ "alpha", "beta", "gamm...
ok 49 - template text 18 matched expected
ok 50 - template text 19 processed OK: [% obj.name %]
ok 51 - template text 19 matched expected
ok 52 - template text 20 processed OK: [% obj.name.list.first %]
ok 53 - template text 20 matched expected
ok 54 - bop processed OK: [% bop.first.name %]
ok 55 - bop matched expected
ok 56 - template text 22 processed OK: [% obj.items.first %]
ok 57 - template text 22 matched expected
ok 58 - template text 23 processed OK: [% obj.items.1 %]
ok 59 - template text 23 matched expected
ok 60 - template text 24 processed OK: =[% size %]=
ok 61 - template text 24 matched expected
ok 62 - template text 25 processed OK: [% USE Dumper;\n   TRY;\n     corr...
ok 63 - template text 25 matched expected
ok 64 - template text 26 processed OK: [% hash = { }\n   list = [ hash ]...
ok 65 - template text 26 matched expected
ok 66 - template text 27 processed OK: [% hashobj.hello %]
ok 67 - template text 27 matched expected
ok 68 - template text 28 processed OK: [% TRY; hashobj.goodbye; CATCH; ...
ok 69 - template text 28 matched expected
ok 70 - template text 29 processed OK: [% TRY;\n    hashobj.now_is_the_t...
ok 71 - template text 29 matched expected
ok 72 - template text 30 processed OK: [% foo = { "one" = "bar" "" = "e...
ok 73 - template text 30 matched expected
ok 74 - template text 31 processed OK: [% cmp_ol.hello %]
ok 75 - template text 31 matched expected
ok 76 - template text 32 processed OK: Before\n[%  TRY;\n        str_eval...
ok 77 - template text 32 matched expected
ok 78 - template text 33 processed OK: [%  str_eval_die %]
ok 79 - template text 33 matched expected

It can be fixed by adding a space at the end of line 153 in stash-xs.t. The question is then why this test does not fail on other platforms (where the space at the end of the line is missing)

from template2.

abw avatar abw commented on September 17, 2024

This is fixed in 86e5f79

After the fix I also saw the same test failing in stash-xs.t but it was due to my editor removing whitespace from the end of the line in the -- expect -- section.

from template2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.