Skip to content

Instantly share code, notes, and snippets.

@ab5tract
Created September 22, 2025 13:48
Show Gist options
  • Save ab5tract/ee659bf8cd0d808500f659ed3510261e to your computer and use it in GitHub Desktop.
Save ab5tract/ee659bf8cd0d808500f659ed3510261e to your computer and use it in GitHub Desktop.
1..20
# Subtest: Simple leading and trailing pod declarator test
ok 1 - Str: deparse
ok 2 - Raku: deparse
1..2
ok 1 - Simple leading and trailing pod declarator test
# Subtest: Simple block with leading and trailing pod test
ok 1 - deparse
ok 2 - AST: did we get a block
ok 3 - AST: can it run and return value
ok 4 - AST: did we get an Array
not ok 5 - AST: does it have one element
not ok 6 - AST: did we get a Pod::Block::Declarator
not ok 7 - AST: is the object the target of the declarator
not ok 8 - AST: is the leading comment correct
not ok 9 - AST: is the trailing comment correct
ok 10 - Str: did we get a block
ok 11 - Str: can it run and return value
ok 12 - Str: did we get an Array
not ok 13 - Str: does it have one element
not ok 14 - Str: did we get a Pod::Block::Declarator
not ok 15 - Str: is the object the target of the declarator
not ok 16 - Str: is the leading comment correct
not ok 17 - Str: is the trailing comment correct
ok 18 - Raku: did we get a block
ok 19 - Raku: can it run and return value
ok 20 - Raku: did we get an Array
not ok 21 - Raku: does it have one element
not ok 22 - Raku: did we get a Pod::Block::Declarator
not ok 23 - Raku: is the object the target of the declarator
not ok 24 - Raku: is the leading comment correct
not ok 25 - Raku: is the trailing comment correct
1..25
not ok 2 - Simple block with leading and trailing pod test
# Subtest: Simple pointy block with leading and trailing pod test
ok 1 - deparse
ok 2 - AST: did we get a block
ok 3 - AST: can it run and return value
ok 4 - AST: did we get an Array
not ok 5 - AST: does it have one element
not ok 6 - AST: did we get a Pod::Block::Declarator
not ok 7 - AST: is the object the target of the declarator
not ok 8 - AST: is the leading comment correct
not ok 9 - AST: is the trailing comment correct
ok 10 - Str: did we get a block
ok 11 - Str: can it run and return value
ok 12 - Str: did we get an Array
not ok 13 - Str: does it have one element
not ok 14 - Str: did we get a Pod::Block::Declarator
not ok 15 - Str: is the object the target of the declarator
not ok 16 - Str: is the leading comment correct
not ok 17 - Str: is the trailing comment correct
ok 18 - Raku: did we get a block
ok 19 - Raku: can it run and return value
ok 20 - Raku: did we get an Array
not ok 21 - Raku: does it have one element
not ok 22 - Raku: did we get a Pod::Block::Declarator
not ok 23 - Raku: is the object the target of the declarator
not ok 24 - Raku: is the leading comment correct
not ok 25 - Raku: is the trailing comment correct
1..25
not ok 3 - Simple pointy block with leading and trailing pod test
# Subtest: Simple sub with leading and trailing pod test
ok 1 - deparse
ok 2 - AST: did we get a sub
ok 3 - AST: did it get the right name
ok 4 - AST: can it run and return value
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a sub
ok 12 - Str: did it get the right name
ok 13 - Str: can it run and return value
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a sub
ok 21 - Raku: did it get the right name
ok 22 - Raku: can it run and return value
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 4 - Simple sub with leading and trailing pod test
# Subtest: Simple class with declarator pod
ok 1 - deparse
ok 2 - AST: did we get a class
ok 3 - AST: did it get the right name
ok 4 - AST: can it instantiate
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a class
ok 12 - Str: did it get the right name
ok 13 - Str: can it instantiate
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a class
ok 21 - Raku: did it get the right name
ok 22 - Raku: can it instantiate
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 5 - Simple class with declarator pod
# Subtest: Simple class with declarator pod, one attribute
ok 1 - deparse
ok 2 - AST: did we get a class
ok 3 - AST: did it get the right name
ok 4 - AST: can it instantiate
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a class
ok 12 - Str: did it get the right name
ok 13 - Str: can it instantiate
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a class
ok 21 - Raku: did it get the right name
ok 22 - Raku: can it instantiate
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 6 - Simple class with declarator pod, one attribute
# Subtest: Simple class with declarator pod, two attributes
ok 1 - deparse
ok 2 - AST: did we get a class
ok 3 - AST: did it get the right name
ok 4 - AST: can it instantiate
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a class
ok 12 - Str: did it get the right name
ok 13 - Str: can it instantiate
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a class
ok 21 - Raku: did it get the right name
ok 22 - Raku: can it instantiate
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 7 - Simple class with declarator pod, two attributes
# Subtest: Simple class with declarator pod, one method
ok 1 - deparse
ok 2 - AST: did we get a class
ok 3 - AST: did it get the right name
ok 4 - AST: can it instantiate
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a class
ok 12 - Str: did it get the right name
ok 13 - Str: can it instantiate
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a class
ok 21 - Raku: did it get the right name
ok 22 - Raku: can it instantiate
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 8 - Simple class with declarator pod, one method
# Subtest: Simple class with declarator pod, one submethod
ok 1 - deparse
ok 2 - AST: did we get a class
ok 3 - AST: did it get the right name
ok 4 - AST: can it instantiate
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a class
ok 12 - Str: did it get the right name
ok 13 - Str: can it instantiate
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a class
ok 21 - Raku: did it get the right name
ok 22 - Raku: can it instantiate
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 9 - Simple class with declarator pod, one submethod
# Subtest: Simple class with declarator pod, one private method
ok 1 - deparse
ok 2 - AST: did we get a class
ok 3 - AST: did it get the right name
ok 4 - AST: can it instantiate
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a class
ok 12 - Str: did it get the right name
ok 13 - Str: can it instantiate
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a class
ok 21 - Raku: did it get the right name
ok 22 - Raku: can it instantiate
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 10 - Simple class with declarator pod, one private method
# Subtest: Simple class with declarator pod, one meta method
ok 1 - deparse
ok 2 - AST: did we get a class
ok 3 - AST: did it get the right name
ok 4 - AST: can it instantiate
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a class
ok 12 - Str: did it get the right name
ok 13 - Str: can it instantiate
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a class
ok 21 - Raku: did it get the right name
ok 22 - Raku: can it instantiate
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 11 - Simple class with declarator pod, one meta method
# Subtest: Simple class with declarator pod, two methods
ok 1 - deparse
ok 2 - AST: did we get a class
ok 3 - AST: did it get the right name
ok 4 - AST: can it instantiate
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a class
ok 12 - Str: did it get the right name
ok 13 - Str: can it instantiate
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a class
ok 21 - Raku: did it get the right name
ok 22 - Raku: can it instantiate
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 12 - Simple class with declarator pod, two methods
# Subtest: Simple enum with declarator pod
ok 1 - deparse
ok 2 - AST: did we get a Map
ok 3 - AST: did we get an Array
not ok 4 - AST: does it have one element
not ok 5 - AST: did we get a Pod::Block::Declarator
not ok 6 - AST: is the leading comment correct
not ok 7 - AST: is the trailing comment correct
ok 8 - Str: did we get a Map
ok 9 - Str: did we get an Array
not ok 10 - Str: does it have one element
not ok 11 - Str: did we get a Pod::Block::Declarator
not ok 12 - Str: is the leading comment correct
not ok 13 - Str: is the trailing comment correct # TODO Str: trailing comment dropped somehow
# Failed test 'Str: is the trailing comment correct'
# at /home/longwalker/code/raku/x.core/rakudo/lib/Test.rakumod (Test) line 763
# expected: "trailing comment"
# got: Nil
ok 14 - Raku: did we get a Map
ok 15 - Raku: did we get an Array
not ok 16 - Raku: does it have one element
not ok 17 - Raku: did we get a Pod::Block::Declarator
not ok 18 - Raku: is the leading comment correct
not ok 19 - Raku: is the trailing comment correct
1..19
not ok 13 - Simple enum with declarator pod
# Subtest: Simple subset with declarator pod
ok 1 - deparse
ok 2 - AST: did we get a subset
ok 3 - AST: did it get the right name
ok 4 - AST: does the subset accept Int
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a subset
ok 12 - Str: did it get the right name
ok 13 - Str: does the subset accept Int
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct # TODO Str: trailing comment dropped somehow
# Failed test 'Str: is the trailing comment correct'
# at /home/longwalker/code/raku/x.core/rakudo/lib/Test.rakumod (Test) line 763
# expected: "trailing comment"
# got: Nil
ok 20 - Raku: did we get a subset
ok 21 - Raku: did it get the right name
ok 22 - Raku: does the subset accept Int
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 14 - Simple subset with declarator pod
# Subtest: Simple regex with declarator pod
ok 1 - deparse
ok 2 - AST: did we get a regex
ok 3 - AST: did it get the right name
ok 4 - AST: did we get an Array
not ok 5 - AST: does it have one element
not ok 6 - AST: did we get a Pod::Block::Declarator
not ok 7 - AST: is the object the target of the declarator
not ok 8 - AST: is the leading comment correct
not ok 9 - AST: is the trailing comment correct
ok 10 - Str: did we get a regex
ok 11 - Str: did it get the right name
ok 12 - Str: did we get an Array
not ok 13 - Str: does it have one element
not ok 14 - Str: did we get a Pod::Block::Declarator
not ok 15 - Str: is the object the target of the declarator
not ok 16 - Str: is the leading comment correct
not ok 17 - Str: is the trailing comment correct
ok 18 - Raku: did we get a regex
ok 19 - Raku: did it get the right name
ok 20 - Raku: did we get an Array
not ok 21 - Raku: does it have one element
not ok 22 - Raku: did we get a Pod::Block::Declarator
not ok 23 - Raku: is the object the target of the declarator
not ok 24 - Raku: is the leading comment correct
not ok 25 - Raku: is the trailing comment correct
1..25
not ok 15 - Simple regex with declarator pod
# Subtest: Sub with declarator pod on parameter (1)
ok 1 - deparse
ok 2 - AST: did we get a sub
ok 3 - AST: did sub get the right name
ok 4 - AST: did parameter get the right name
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a sub
ok 12 - Str: did sub get the right name
ok 13 - Str: did parameter get the right name
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a sub
ok 21 - Raku: did sub get the right name
ok 22 - Raku: did parameter get the right name
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 16 - Sub with declarator pod on parameter (1)
# Subtest: Sub with declarator pod on parameter (2)
ok 1 - deparse
ok 2 - AST: did we get a sub
ok 3 - AST: did sub get the right name
ok 4 - AST: did parameter get the right name
ok 5 - AST: did we get an Array
not ok 6 - AST: does it have one element
not ok 7 - AST: did we get a Pod::Block::Declarator
not ok 8 - AST: is the object the target of the declarator
not ok 9 - AST: is the leading comment correct
not ok 10 - AST: is the trailing comment correct
ok 11 - Str: did we get a sub
ok 12 - Str: did sub get the right name
ok 13 - Str: did parameter get the right name
ok 14 - Str: did we get an Array
not ok 15 - Str: does it have one element
not ok 16 - Str: did we get a Pod::Block::Declarator
not ok 17 - Str: is the object the target of the declarator
not ok 18 - Str: is the leading comment correct
not ok 19 - Str: is the trailing comment correct
ok 20 - Raku: did we get a sub
ok 21 - Raku: did sub get the right name
ok 22 - Raku: did parameter get the right name
ok 23 - Raku: did we get an Array
not ok 24 - Raku: does it have one element
not ok 25 - Raku: did we get a Pod::Block::Declarator
not ok 26 - Raku: is the object the target of the declarator
not ok 27 - Raku: is the leading comment correct
not ok 28 - Raku: is the trailing comment correct
1..28
not ok 17 - Sub with declarator pod on parameter (2)
# Subtest: Sub with declarator pod on parameter (3)
ok 1 - deparse
ok 2 - AST: did we get a sub
ok 3 - AST: did sub get the right name
ok 4 - AST: did first parameter get the right name
ok 5 - AST: did second parameter get the right name
ok 6 - AST: did we get an Array
not ok 7 - AST: does it have two elements
not ok 8 - AST: did we get a Pod::Block::Declarator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment