-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from kfly8/added-isa-operator
Added isa operator
- Loading branch information
Showing
9 changed files
with
271 additions
and
212 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#ifndef OP_ISA | ||
# define OP_ISA 0 // 0 means BINOP_NONE | ||
#endif |
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
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,15 @@ | ||
use Test2::V0; | ||
use Syntax::Keyword::Assert; | ||
|
||
use lib 't/lib'; | ||
use TestUtil; | ||
|
||
use Test2::Require::Module 'feature' => '1.58'; | ||
|
||
use experimental 'isa'; | ||
|
||
my $obj = bless {}, 'Foo'; | ||
ok lives { assert($obj isa Foo) }; | ||
ok dies { assert($obj isa Bar) }, expected_assert_bin('Foo', 'isa', 'Bar'); | ||
|
||
done_testing; |
Oops, something went wrong.