Skip to content
This repository has been archived by the owner on May 28, 2022. It is now read-only.

Commit

Permalink
Fix up tests to work with TestML changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanstowe committed Feb 9, 2019
1 parent cacbf84 commit ad79e3e
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion META6.json
Expand Up @@ -2,7 +2,7 @@
"perl" : "6.*",
"name" : "YAML",
"license" : "Artistic-2.0",
"version" : "*",
"version" : "0.1",
"author" : "Ingy döt Net <ingy@cpan.org>",
"description" : "YAML Ain’t Markup Language",
"depends" : [ "TestML" ],
Expand Down
6 changes: 3 additions & 3 deletions t/Bridge.pm
@@ -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);
}
4 changes: 2 additions & 2 deletions t/dump.t
@@ -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();
2 changes: 1 addition & 1 deletion t/dump.tml
Expand Up @@ -144,7 +144,7 @@ class Foo {
Foo.new(x => 1, y => 2);

+++ yaml
--- !t::Bridge::Foo
--- !Bridge::Foo
x: 1
y: 2
...
Expand Down
4 changes: 2 additions & 2 deletions t/fail.t
@@ -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();
4 changes: 2 additions & 2 deletions t/strings.t
@@ -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();

0 comments on commit ad79e3e

Please sign in to comment.