This repository has been archived by the owner on May 28, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix up tests to work with TestML changes
- Loading branch information
1 parent
cacbf84
commit ad79e3e
Showing
6 changed files
with
11 additions
and
11 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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
use v6; | ||
|
||
unit module t::Bridge; | ||
unit module Bridge; | ||
use MONKEY-SEE-NO-EVAL; | ||
use YAML; | ||
|
||
our sub eval_perl($this) { | ||
our sub eval_perl($this) is export { | ||
return EVAL $this.value; | ||
CATCH { | ||
return "$!"; | ||
} | ||
} | ||
|
||
our sub dump_to_yaml($this) { | ||
our sub dump_to_yaml($this) is export { | ||
return YAML::dump($this.value); | ||
} |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
use TestML::Runner::TAP; | ||
|
||
use lib '.'; | ||
use lib $*PROGRAM.parent.absolute; | ||
|
||
TestML::Runner::TAP.new( | ||
document => 'dump.tml', | ||
bridge => 't::Bridge', | ||
bridge => 'Bridge', | ||
).run(); |
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 |
---|---|---|
|
@@ -144,7 +144,7 @@ class Foo { | |
Foo.new(x => 1, y => 2); | ||
|
||
+++ yaml | ||
--- !t::Bridge::Foo | ||
--- !Bridge::Foo | ||
x: 1 | ||
y: 2 | ||
... | ||
|
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
use TestML::Runner::TAP; | ||
|
||
use lib '.'; | ||
use lib $*PROGRAM.parent.absolute; | ||
|
||
TestML::Runner::TAP.new( | ||
document => 'fail.tml', | ||
bridge => 't::Bridge', | ||
bridge => 'Bridge', | ||
).run(); |
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
use TestML::Runner::TAP; | ||
|
||
use lib '.'; | ||
use lib $*PROGRAM.parent.absolute; | ||
|
||
TestML::Runner::TAP.new( | ||
document => 'strings.tml', | ||
bridge => 't::Bridge', | ||
bridge => 'Bridge', | ||
).run(); |