Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes documentation of nqp::sha1 (it's a serialization context opcode, not a string opcode), and reorganizes its test code.
- Loading branch information
1 parent
5c3611d
commit 488ad0f
Showing
4 changed files
with
26 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
use helper; | ||
|
||
plan(1); | ||
|
||
qast_test( | ||
-> { | ||
my $block := QAST::Block.new( | ||
QAST::Op.new( | ||
:op('say'), | ||
QAST::Op.new( | ||
:op('sha1'), | ||
QAST::SVal.new( :value("larva") ) | ||
))); | ||
QAST::CompUnit.new( | ||
$block, | ||
:main(QAST::Op.new( | ||
:op('call'), | ||
QAST::BVal.new( :value($block) ) | ||
))) | ||
}, | ||
"2DE6BA12D336DD56ABE5B163DDF836B951A2CA7C\n", | ||
"sha1"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters