mirror of
git://git.proxmox.com/git/perlmod.git
synced 2025-01-19 18:03:36 +03:00
test updates
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
3f7917309b
commit
83ac604e08
@ -29,8 +29,8 @@ mod export {
|
||||
}
|
||||
|
||||
#[export]
|
||||
fn test_serde(value: super::Blubber) -> Result<(), Error> {
|
||||
fn test_serde(value: super::Blubber) -> Result<String, Error> {
|
||||
println!("got {:?}", value);
|
||||
Ok(())
|
||||
Ok(value.0)
|
||||
}
|
||||
}
|
||||
|
16
test.pl
16
test.pl
@ -25,4 +25,18 @@ RSPM::Foo142::test($param->{x});
|
||||
print "Was auto-vivified: " . (exists($param->{x}) ? "YES" : "NO") . "\n";
|
||||
RSPM::Foo142::teststr($param->{x});
|
||||
|
||||
RSPM::Foo142::test_serde("Hello");
|
||||
my $a = "Can I have some coffee please?\n";
|
||||
print $a;
|
||||
my $b = RSPM::Foo142::test_serde($a);
|
||||
print $b;
|
||||
my $c = RSPM::Foo142::test_serde($b);
|
||||
print $c;
|
||||
|
||||
use utf8;
|
||||
binmode STDOUT, ':utf8';
|
||||
my $a = "Can I have some ☕ please?\n";
|
||||
print $a;
|
||||
my $b = RSPM::Foo142::test_serde($a);
|
||||
print $b;
|
||||
my $c = RSPM::Foo142::test_serde($b);
|
||||
print $c;
|
||||
|
@ -4,9 +4,18 @@ test called with Some("lo ")
|
||||
teststr called with Some("lo ")
|
||||
test called with None
|
||||
teststr called with None
|
||||
got Blubber("Hello")
|
||||
got Blubber("Can I have some coffee please?\n")
|
||||
got Blubber("Can I have some coffee please?\n")
|
||||
got Blubber("Can I have some ☕ please?\n")
|
||||
got Blubber("Can I have some ☕ please?\n")
|
||||
Got (17, 32, )
|
||||
Got: 2 values: 17 32
|
||||
These should be called with a valid substr:
|
||||
Parameter exists: NO
|
||||
Was auto-vivified: NO
|
||||
Can I have some coffee please?
|
||||
Can I have some coffee please?
|
||||
Can I have some coffee please?
|
||||
Can I have some ☕ please?
|
||||
Can I have some ☕ please?
|
||||
Can I have some ☕ please?
|
||||
|
Loading…
x
Reference in New Issue
Block a user